fix macro name and make api public

This commit is contained in:
Jacob Barthelmeh
2021-05-26 18:30:22 +07:00
parent 22b6cc675a
commit 64f53c4e1b
2 changed files with 5 additions and 3 deletions

View File

@ -536,7 +536,7 @@ int EmbedGenerateCookie(WOLFSSL* ssl, byte *buf, int sz, void *ctx)
SOCKADDR_S addr;
/* sanity checks on arguments */
if (ssl == NULL || ip == NULL || ipSz < 0 || ipSz > DTLS_EXPORT_IP) {
if (ssl == NULL || ip == NULL || ipSz < 0 || ipSz > MAX_EXPORT_IP) {
return BAD_FUNC_ARG;
}

View File

@ -878,8 +878,10 @@ WOLFSSL_ABI WOLFSSL_API WOLFSSL_METHOD *wolfTLSv1_2_client_method(void);
#endif
#ifdef WOLFSSL_SESSION_EXPORT
int wolfSSL_tls_import(WOLFSSL* ssl, const unsigned char* buf, unsigned int sz);
int wolfSSL_tls_export(WOLFSSL* ssl, unsigned char* buf, unsigned int* sz);
WOLFSSL_API int wolfSSL_tls_import(WOLFSSL* ssl, const unsigned char* buf,
unsigned int sz);
WOLFSSL_API int wolfSSL_tls_export(WOLFSSL* ssl, unsigned char* buf,
unsigned int* sz);
#ifdef WOLFSSL_DTLS