forked from wolfSSL/wolfssl
Merge branch 'master' of github.com:wolfssl/wolfssl
This commit is contained in:
@ -87,5 +87,7 @@ STRINGTABLE
|
|||||||
|
|
||||||
71, "Decrypt Keys Not Set Up"
|
71, "Decrypt Keys Not Set Up"
|
||||||
72, "Late Key Load Error"
|
72, "Late Key Load Error"
|
||||||
|
73, "Got Certificate Status msg"
|
||||||
|
74, "RSA Key Missing Error"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -236,7 +236,9 @@ static const char* const msgTable[] =
|
|||||||
|
|
||||||
/* 71 */
|
/* 71 */
|
||||||
"Decrypt Keys Not Set Up",
|
"Decrypt Keys Not Set Up",
|
||||||
"Late Key Load Error"
|
"Late Key Load Error",
|
||||||
|
"Got Certificate Status msg",
|
||||||
|
"RSA Key Missing Error"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -1286,6 +1288,12 @@ static int ProcessClientKeyExchange(const byte* input, int* sslBytes,
|
|||||||
RsaKey key;
|
RsaKey key;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
if (session->sslServer->buffers.key.buffer == NULL ||
|
||||||
|
session->sslServer->buffers.key.length == 0) {
|
||||||
|
|
||||||
|
SetError(RSA_KEY_MISSING_STR, error, session, FATAL_ERROR_STATE);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
ret = wc_InitRsaKey(&key, 0);
|
ret = wc_InitRsaKey(&key, 0);
|
||||||
if (ret == 0)
|
if (ret == 0)
|
||||||
ret = wc_RsaPrivateKeyDecode(session->sslServer->buffers.key.buffer,
|
ret = wc_RsaPrivateKeyDecode(session->sslServer->buffers.key.buffer,
|
||||||
@ -1842,6 +1850,9 @@ static int DoHandShake(const byte* input, int* sslBytes,
|
|||||||
case certificate_verify:
|
case certificate_verify:
|
||||||
Trace(GOT_CERT_VER_STR);
|
Trace(GOT_CERT_VER_STR);
|
||||||
break;
|
break;
|
||||||
|
case certificate_status:
|
||||||
|
Trace(GOT_CERT_STATUS_STR);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
SetError(GOT_UNKNOWN_HANDSHAKE_STR, error, session, 0);
|
SetError(GOT_UNKNOWN_HANDSHAKE_STR, error, session, 0);
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -2276,6 +2276,7 @@ enum HandShakeType {
|
|||||||
certificate_verify = 15,
|
certificate_verify = 15,
|
||||||
client_key_exchange = 16,
|
client_key_exchange = 16,
|
||||||
finished = 20,
|
finished = 20,
|
||||||
|
certificate_status = 22,
|
||||||
change_cipher_hs = 55 /* simulate unique handshake type for sanity
|
change_cipher_hs = 55 /* simulate unique handshake type for sanity
|
||||||
checks. record layer change_cipher
|
checks. record layer change_cipher
|
||||||
conflicts with handshake finished */
|
conflicts with handshake finished */
|
||||||
|
@ -105,6 +105,8 @@
|
|||||||
|
|
||||||
#define DECRYPT_KEYS_NOT_SETUP 71
|
#define DECRYPT_KEYS_NOT_SETUP 71
|
||||||
#define CLIENT_HELLO_LATE_KEY_STR 72
|
#define CLIENT_HELLO_LATE_KEY_STR 72
|
||||||
|
#define GOT_CERT_STATUS_STR 73
|
||||||
|
#define RSA_KEY_MISSING_STR 74
|
||||||
/* !!!! also add to msgTable in sniffer.c and .rc file !!!! */
|
/* !!!! also add to msgTable in sniffer.c and .rc file !!!! */
|
||||||
|
|
||||||
|
|
||||||
|
@ -87,5 +87,7 @@ STRINGTABLE
|
|||||||
|
|
||||||
71, "Decrypt Keys Not Set Up"
|
71, "Decrypt Keys Not Set Up"
|
||||||
72, "Late Key Load Error"
|
72, "Late Key Load Error"
|
||||||
|
73, "Got Certificate Status msg"
|
||||||
|
74, "RSA Key Missing Error"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user