formating for line length and guard on access to EncryptedInfo struct

This commit is contained in:
JacobBarthelmeh
2025-01-23 23:56:28 -07:00
parent 52975150d4
commit 2526d91300
2 changed files with 4 additions and 1 deletions

View File

@ -37929,7 +37929,8 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
#ifdef HAVE_SERVER_RENEGOTIATION_INFO
/* check for TLS_EMPTY_RENEGOTIATION_INFO_SCSV suite */
if (FindSuite(ssl->clSuites, 0, TLS_EMPTY_RENEGOTIATION_INFO_SCSV) >= 0) {
if (FindSuite(ssl->clSuites, 0, TLS_EMPTY_RENEGOTIATION_INFO_SCSV) >=
0) {
TLSX* extension;
/* check for TLS_EMPTY_RENEGOTIATION_INFO_SCSV suite */

View File

@ -5312,8 +5312,10 @@ static WOLFSSL_X509* loadX509orX509REQFromBuffer(
if (format == WOLFSSL_FILETYPE_PEM) {
EncryptedInfo info;
XMEMSET(&info, 0, sizeof(EncryptedInfo));
#ifdef WOLFSSL_ENCRYPTED_KEYS
info.passwd_cb = cb;
info.passwd_userdata = u;
#endif
#ifdef WOLFSSL_PEM_TO_DER
ret = PemToDer(buf, sz, type, &der, NULL, &info, NULL);