003 File Manager
Current Path:
/usr/src/contrib/ntp/include
usr
/
src
/
contrib
/
ntp
/
include
/
📁
..
📄
Makefile.am
(1.2 KB)
📄
Makefile.in
(24.68 KB)
📄
README
(157 B)
📄
adjtime.h
(1.96 KB)
📄
ascii.h
(2.78 KB)
📄
audio.h
(283 B)
📄
binio.h
(3.26 KB)
📄
declcond.h
(803 B)
📄
gps.h
(2.84 KB)
📄
hopf6039.h
(3.51 KB)
📄
icom.h
(2.33 KB)
📄
ieee754io.h
(2.94 KB)
📄
intreswork.h
(808 B)
📄
iosignal.h
(1.46 KB)
📁
isc
📄
l_stdlib.h
(4.8 KB)
📄
lib_strbuf.h
(674 B)
📄
libntp.h
(436 B)
📄
libssl_compat.h
(4.25 KB)
📄
mbg_gps166.h
(36.84 KB)
📄
mx4200.h
(2.15 KB)
📄
ntif.h
(2.86 KB)
📄
ntp.h
(33.52 KB)
📄
ntp_assert.h
(2.73 KB)
📄
ntp_calendar.h
(14.99 KB)
📄
ntp_calgps.h
(4.02 KB)
📄
ntp_cmdargs.h
(38 B)
📄
ntp_config.h
(8.33 KB)
📄
ntp_control.h
(5.66 KB)
📄
ntp_crypto.h
(6.61 KB)
📄
ntp_datum.h
(1.07 KB)
📄
ntp_debug.h
(635 B)
📄
ntp_filegen.h
(1.76 KB)
📄
ntp_fp.h
(13.37 KB)
📄
ntp_if.h
(651 B)
📄
ntp_intres.h
(1.77 KB)
📄
ntp_io.h
(1.82 KB)
📄
ntp_keyacc.h
(658 B)
📄
ntp_libopts.h
(330 B)
📄
ntp_lineedit.h
(251 B)
📄
ntp_lists.h
(12.09 KB)
📄
ntp_machine.h
(7.18 KB)
📄
ntp_malloc.h
(1.18 KB)
📄
ntp_md5.h
(1.32 KB)
📄
ntp_net.h
(6.61 KB)
📄
ntp_prio_q.h
(1.93 KB)
📄
ntp_proto.h
(95 B)
📄
ntp_psl.h
(342 B)
📄
ntp_random.h
(402 B)
📄
ntp_refclock.h
(7.81 KB)
📄
ntp_request.h
(30.83 KB)
📄
ntp_rfc2553.h
(8.46 KB)
📄
ntp_select.h
(1.02 KB)
📄
ntp_stdlib.h
(9.83 KB)
📄
ntp_string.h
(708 B)
📄
ntp_syscall.h
(1.17 KB)
📄
ntp_syslog.h
(2.94 KB)
📄
ntp_tty.h
(2.61 KB)
📄
ntp_types.h
(7.21 KB)
📄
ntp_unixtime.h
(1.6 KB)
📄
ntp_worker.h
(5.54 KB)
📄
ntp_workimpl.h
(749 B)
📄
ntpd.h
(20.67 KB)
📄
ntpsim.h
(3.85 KB)
📄
parse.h
(14.58 KB)
📄
parse_conf.h
(2.76 KB)
📄
rc_cmdlength.h
(83 B)
📄
recvbuff.h
(3.84 KB)
📄
refclock_atom.h
(449 B)
📄
refidsmear.h
(89 B)
📄
safecast.h
(1.04 KB)
📄
ssl_applink.c
(2.1 KB)
📄
timepps-SCO.h
(11.67 KB)
📄
timepps-Solaris.h
(13.24 KB)
📄
timepps-SunOS.h
(11.78 KB)
📄
timespecops.h
(4.82 KB)
📄
timetoa.h
(2.62 KB)
📄
timevalops.h
(8.33 KB)
📄
timexsup.h
(1.37 KB)
📄
trimble.h
(8.01 KB)
📄
vint64ops.h
(1.05 KB)
Editing: libssl_compat.h
/* * libssl_compat.h -- OpenSSL v1.1 compatibility shims * * --------------------------------------------------------------------- * * Written by Juergen Perlinger <perlinger@ntp.org> for the NTP project * * Based on an idea by Kurt Roeckx <kurt@roeckx.be> * * --------------------------------------------------------------------- * This is a clean room implementation of shim functions that have * counterparts in the OpenSSL v1.1 API but not in earlier versions. * * If the OpenSSL version used for compilation needs the shims (that is, * does not provide the new functions) the names of these functions are * redirected to our shims. * --------------------------------------------------------------------- */ #ifndef NTP_LIBSSL_COMPAT_H #define NTP_LIBSSL_COMPAT_H #include "openssl/evp.h" #include "openssl/dsa.h" #include "openssl/rsa.h" #ifndef OPENSSL_VERSION_NUMBER #define OPENSSL_VERSION_NUMBER SSLEAY_VERSION_NUMBER #endif #ifndef OPENSSL_VERSION_TEXT #define OPENSSL_VERSION_TEXT SSLEAY_VERSION_TEXT #endif #ifndef OPENSSL_VERSION #define OPENSSL_VERSION SSLEAY_VERSION #endif /* ----------------------------------------------------------------- */ #if OPENSSL_VERSION_NUMBER < 0x10100000L /* ----------------------------------------------------------------- */ # include <openssl/objects.h> # include <openssl/x509.h> /* shim the new-style API on an old-style OpenSSL */ extern BN_GENCB* sslshimBN_GENCB_new(void); extern void sslshimBN_GENCB_free(BN_GENCB*); extern EVP_MD_CTX* sslshim_EVP_MD_CTX_new(void); extern void sslshim_EVP_MD_CTX_free(EVP_MD_CTX *ctx); extern int sslshim_EVP_PKEY_id(const EVP_PKEY * pkey); extern int sslshim_EVP_PKEY_base_id(const EVP_PKEY * pkey); extern RSA* sslshim_EVP_PKEY_get0_RSA(EVP_PKEY * pkey); extern DSA* sslshim_EVP_PKEY_get0_DSA(EVP_PKEY * pkey); extern void sslshim_RSA_get0_key(const RSA *prsa, const BIGNUM **pn, const BIGNUM **pe, const BIGNUM **pd); extern int sslshim_RSA_set0_key(RSA *prsa, BIGNUM *n, BIGNUM *e, BIGNUM *d); extern void sslshim_RSA_get0_factors(const RSA *prsa, const BIGNUM **pp, const BIGNUM **pq); extern int sslshim_RSA_set0_factors(RSA *prsar, BIGNUM *p, BIGNUM *q); extern int sslshim_RSA_set0_crt_params(RSA *prsa, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp); extern void sslshim_DSA_SIG_get0(const DSA_SIG *psig, const BIGNUM **pr, const BIGNUM **ps); extern int sslshim_DSA_SIG_set0(DSA_SIG *psig, BIGNUM *r, BIGNUM *s); extern void sslshim_DSA_get0_pqg(const DSA *pdsa, const BIGNUM **pp, const BIGNUM **pq, const BIGNUM **pg); extern int sslshim_DSA_set0_pqg(DSA *pdsa, BIGNUM *p, BIGNUM *q, BIGNUM *g); extern void sslshim_DSA_get0_key(const DSA *pdsa, const BIGNUM **ppub_key, const BIGNUM **ppriv_key); extern int sslshim_DSA_set0_key(DSA *pdsa, BIGNUM *pub_key, BIGNUM *priv_key); extern int sslshim_X509_get_signature_nid(const X509 *x); #define BN_GENCB_new sslshimBN_GENCB_new #define BN_GENCB_free sslshimBN_GENCB_free #define EVP_MD_CTX_new sslshim_EVP_MD_CTX_new #define EVP_MD_CTX_free sslshim_EVP_MD_CTX_free #define EVP_PKEY_id sslshim_EVP_PKEY_id #define EVP_PKEY_base_id sslshim_EVP_PKEY_base_id #define EVP_PKEY_get0_RSA sslshim_EVP_PKEY_get0_RSA #define EVP_PKEY_get0_DSA sslshim_EVP_PKEY_get0_DSA #define RSA_get0_key sslshim_RSA_get0_key #define RSA_set0_key sslshim_RSA_set0_key #define RSA_get0_factors sslshim_RSA_get0_factors #define RSA_set0_factors sslshim_RSA_set0_factors #define RSA_set0_crt_params sslshim_RSA_set0_crt_params #define DSA_SIG_get0 sslshim_DSA_SIG_get0 #define DSA_SIG_set0 sslshim_DSA_SIG_set0 #define DSA_get0_pqg sslshim_DSA_get0_pqg #define DSA_set0_pqg sslshim_DSA_set0_pqg #define DSA_get0_key sslshim_DSA_get0_key #define DSA_set0_key sslshim_DSA_set0_key #define X509_get_signature_nid sslshim_X509_get_signature_nid #define OpenSSL_version_num SSLeay #define OpenSSL_version SSLeay_version #define X509_get0_notBefore X509_get_notBefore #define X509_getm_notBefore X509_get_notBefore #define X509_get0_notAfter X509_get_notAfter #define X509_getm_notAfter X509_get_notAfter /* ----------------------------------------------------------------- */ #endif /* OPENSSL_VERSION_NUMBER < v1.1.0 */ /* ----------------------------------------------------------------- */ #endif /* NTP_LIBSSL_COMPAT_H */
Upload File
Create Folder