forked from wolfSSL/wolfssl
add certgen and certext to jni, add get timeout function
This commit is contained in:
10
configure.ac
10
configure.ac
@@ -3317,6 +3317,16 @@ then
|
||||
then
|
||||
ENABLED_PSK="yes"
|
||||
fi
|
||||
if test "x$ENABLED_CERTEXT" = "xno"
|
||||
then
|
||||
ENABLED_CERTEXT="yes"
|
||||
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_CERT_EXT"
|
||||
fi
|
||||
if test "x$ENABLED_CERTGEN" = "xno"
|
||||
then
|
||||
ENABLED_CERTGEN="yes"
|
||||
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_CERT_GEN"
|
||||
fi
|
||||
fi
|
||||
|
||||
# lighty Support
|
||||
|
11
src/ssl.c
11
src/ssl.c
@@ -34572,6 +34572,17 @@ long wolfSSL_SSL_CTX_get_timeout(const WOLFSSL_CTX *ctx)
|
||||
return ctx->timeout;
|
||||
}
|
||||
|
||||
|
||||
/* returns the time in seconds of the current timeout */
|
||||
long wolfSSL_get_timeout(WOLFSSL* ssl)
|
||||
{
|
||||
WOLFSSL_ENTER("wolfSSL_get_timeout");
|
||||
|
||||
if (ssl == NULL)
|
||||
return 0;
|
||||
return ssl->timeout;
|
||||
}
|
||||
|
||||
#ifdef HAVE_ECC
|
||||
int wolfSSL_SSL_CTX_set_tmp_ecdh(WOLFSSL_CTX *ctx, WOLFSSL_EC_KEY *ecdh)
|
||||
{
|
||||
|
@@ -2970,6 +2970,7 @@ WOLFSSL_API int wolfSSL_X509_NAME_digest(const WOLFSSL_X509_NAME *data,
|
||||
const WOLFSSL_EVP_MD *type, unsigned char *md, unsigned int *len);
|
||||
|
||||
WOLFSSL_API long wolfSSL_SSL_CTX_get_timeout(const WOLFSSL_CTX *ctx);
|
||||
WOLFSSL_API long wolfSSL_get_timeout(WOLFSSL* ssl);
|
||||
WOLFSSL_API int wolfSSL_SSL_CTX_set_tmp_ecdh(WOLFSSL_CTX *ctx,
|
||||
WOLFSSL_EC_KEY *ecdh);
|
||||
WOLFSSL_API int wolfSSL_SSL_CTX_remove_session(WOLFSSL_CTX *,
|
||||
|
Reference in New Issue
Block a user