1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-24 09:08:49 -05:00

openssl: fix debug messages

Fixes #2806
Closes #2843
This commit is contained in:
Daniel Jelinski 2018-08-06 23:35:33 +02:00 committed by Daniel Stenberg
parent 3668d9d762
commit aa2ad90acd
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1974,7 +1974,15 @@ static void ssl_tls_trace(int direction, int ssl_ver, int content_type,
}
else
#endif
{
if(content_type == SSL3_RT_CHANGE_CIPHER_SPEC) {
msg_type = *(char *)buf;
msg_name = "Change cipher spec";
}
else if(content_type == SSL3_RT_ALERT) {
msg_type = (((char *)buf)[0] << 8) + ((char *)buf)[1];
msg_name = SSL_alert_desc_string_long(msg_type);
}
else {
msg_type = *(char *)buf;
msg_name = ssl_msg_type(ssl_ver, msg_type);
}