mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 20:54:41 +02:00
SSL_get_peer_cert_chain() count value check in api.c
This commit is contained in:
@@ -30202,8 +30202,10 @@ void* wolfSSL_GetDhAgreeCtx(WOLFSSL* ssl)
|
||||
return NULL;
|
||||
}
|
||||
XMEMCPY(obj->obj, objBuf, obj->objSz);
|
||||
} else /* static NAME_ENTR is for just type and grp */
|
||||
} else {/* static NAME_ENTR is for just type and grp */
|
||||
obj->obj = NULL;
|
||||
obj->type = id;
|
||||
}
|
||||
|
||||
(void)type;
|
||||
|
||||
@@ -30584,7 +30586,6 @@ void* wolfSSL_GetDhAgreeCtx(WOLFSSL* ssl)
|
||||
if (o == NULL) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if ((id = GetObjectId(o->obj, &idx, &oid, o->grp, o->objSz)) < 0) {
|
||||
WOLFSSL_MSG("Issue getting OID of object");
|
||||
return -1;
|
||||
|
@@ -17690,6 +17690,9 @@ static void msg_cb(int write_p, int version, int content_type,
|
||||
!defined(NO_FILESYSTEM) && defined(DEBUG_WOLFSSL) && \
|
||||
defined(HAVE_IO_TESTS_DEPENDENCIES)
|
||||
#ifndef SINGLE_THREADED
|
||||
#if defined(SESSION_CERTS)
|
||||
#include "wolfssl/internal.h"
|
||||
#endif
|
||||
static int msgCb(SSL_CTX *ctx, SSL *ssl)
|
||||
{
|
||||
(void) ctx;
|
||||
|
@@ -107,6 +107,7 @@ WOLFSSL_API int wolfSSL_GetAllocators(wolfSSL_Malloc_cb*,
|
||||
#else
|
||||
/* having session certs enabled makes a 21k SSL struct */
|
||||
#define WOLFMEM_BUCKETS 64,128,256,512,1024,2432,3456,4544,21920
|
||||
/* #define WOLFMEM_BUCKETS 64,128,256,512,1024,2432,3456,4544,23088 */
|
||||
#endif
|
||||
#endif
|
||||
#ifndef WOLFMEM_DIST
|
||||
|
Reference in New Issue
Block a user