diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-10-31 09:38:37 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-11-07 16:46:12 +0000 |
commit | e0c4bf32c3423530abb4919dd2fd0f20ae7df2e8 (patch) | |
tree | 3a677ab8f9ff99193de6cc1a9b9157a09290fbf6 /main/libtls-standalone/tls_compat.h | |
parent | ca6964abf88ba5441e9a23f0005fafd4485a39a4 (diff) | |
download | aports-e0c4bf32c3423530abb4919dd2fd0f20ae7df2e8.tar.bz2 aports-e0c4bf32c3423530abb4919dd2fd0f20ae7df2e8.tar.xz |
main/libtls-standalone: move from testing
needed by busybox
Diffstat (limited to 'main/libtls-standalone/tls_compat.h')
-rw-r--r-- | main/libtls-standalone/tls_compat.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/main/libtls-standalone/tls_compat.h b/main/libtls-standalone/tls_compat.h new file mode 100644 index 0000000000..8e4629e35a --- /dev/null +++ b/main/libtls-standalone/tls_compat.h @@ -0,0 +1,23 @@ +#include <string.h> + +#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); + +#endif |