diff options
author | William Pitcock <nenolod@dereferenced.org> | 2018-10-13 11:34:45 -0500 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-10-13 11:38:52 -0500 |
commit | b8e9780813989d6e55cd48ca0b96a2e521a75660 (patch) | |
tree | 7fd76adc6162842ff5ed35eeb0cb55359302d6fb /testing/libtls-standalone/tls_compat.h | |
parent | af1db7f2648388315f975cf3b637cb27e423148c (diff) | |
download | aports-b8e9780813989d6e55cd48ca0b96a2e521a75660.tar.bz2 aports-b8e9780813989d6e55cd48ca0b96a2e521a75660.tar.xz |
testing/libtls-standalone: new aport
libtls extricated from libressl, built against openssl.
also, probably one of the ugliest hacks i have ever done.
Diffstat (limited to 'testing/libtls-standalone/tls_compat.h')
-rw-r--r-- | testing/libtls-standalone/tls_compat.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/libtls-standalone/tls_compat.h b/testing/libtls-standalone/tls_compat.h new file mode 100644 index 0000000000..6f91171cf8 --- /dev/null +++ b/testing/libtls-standalone/tls_compat.h @@ -0,0 +1,25 @@ +#include <openssl/opensslv.h> +#include <openssl/x509_vfy.h> + +#ifndef LIBTLS_TLS_COMPAT_H +#define LIBTLS_TLS_COMPAT_H + +#ifndef X509_V_FLAG_NO_CHECK_TIME +#define X509_V_FLAG_NO_CHECK_TIME 0 +#endif + +#ifndef SSL_OP_NO_CLIENT_RENEGOTIATION +#define SSL_OP_NO_CLIENT_RENEGOTIATION 0 +#endif + +int SSL_CTX_load_verify_mem(SSL_CTX *ctx, void *buf, int len); + +int ASN1_time_parse(const char *bytes, size_t len, struct tm *tm, int mode); + +int SSL_CTX_use_certificate_chain_mem(SSL_CTX *, char *buf, off_t); + +int SSL_CTX_set1_groups(SSL_CTX *ctx, int *glist, int glistlen); + +#define SSL_CTX_set_dh_auto(...) + +#endif |