mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-31 15:39:16 +01:00
Support for IoT-Safe with TLS demo
This commit is contained in:
committed by
David Garske
parent
c6f0fb11d0
commit
490eeb4003
@@ -604,4 +604,5 @@ endif
|
||||
|
||||
endif !BUILD_CRYPTONLY
|
||||
|
||||
|
||||
endif !BUILD_FIPS_RAND
|
||||
|
||||
@@ -32783,6 +32783,27 @@ int wolfSSL_GetMaxRecordSize(WOLFSSL* ssl, int maxFragment)
|
||||
|
||||
return maxFragment;
|
||||
}
|
||||
|
||||
#if defined(WOLFSSL_IOTSAFE) && defined(HAVE_PK_CALLBACKS)
|
||||
|
||||
IOTSAFE *wolfSSL_get_iotsafe_ctx(WOLFSSL *ssl)
|
||||
{
|
||||
if (ssl == NULL)
|
||||
return NULL;
|
||||
return &ssl->iotsafe;
|
||||
|
||||
}
|
||||
|
||||
int wolfSSL_set_iotsafe_ctx(WOLFSSL *ssl, IOTSAFE *iotsafe)
|
||||
{
|
||||
if ((ssl == NULL) || (iotsafe == NULL))
|
||||
return BAD_FUNC_ARG;
|
||||
XMEMCPY(&ssl->iotsafe, iotsafe, sizeof(IOTSAFE));
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#if defined(OPENSSL_ALL) && !defined(NO_FILESYSTEM) && !defined(NO_WOLFSSL_DIR)
|
||||
/* create an instance of WOLFSSL_BY_DIR_HASH structure */
|
||||
WOLFSSL_BY_DIR_HASH* wolfSSL_BY_DIR_HASH_new(void)
|
||||
|
||||
Reference in New Issue
Block a user