SSL_get_peer_cert_chain() count value check in api.c

This commit is contained in:
Go Hosohara
2018-07-04 10:30:29 +09:00
parent 259d3b5720
commit 3f82fb62a0
3 changed files with 7 additions and 2 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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