Update from stable branch.
This commit is contained in:
parent
715feb3104
commit
6f71e5ee6a
@ -1343,6 +1343,9 @@ int ssl_cipher_list_to_bytes(SSL *s,STACK_OF(SSL_CIPHER) *sk,unsigned char *p,
|
|||||||
s->psk_client_callback == NULL)
|
s->psk_client_callback == NULL)
|
||||||
continue;
|
continue;
|
||||||
#endif /* OPENSSL_NO_PSK */
|
#endif /* OPENSSL_NO_PSK */
|
||||||
|
/* DTLS doesn't currently support ECDHE */
|
||||||
|
if ((s->version == DTLS1_VERSION || s->version == DTLS1_BAD_VER) && (c->algorithm_mkey & SSL_kEECDH))
|
||||||
|
continue;
|
||||||
j = put_cb ? put_cb(c,p) : ssl_put_cipher_by_char(s,c,p);
|
j = put_cb ? put_cb(c,p) : ssl_put_cipher_by_char(s,c,p);
|
||||||
p+=j;
|
p+=j;
|
||||||
}
|
}
|
||||||
|
@ -117,6 +117,10 @@ int SSL_SESSION_print(BIO *bp, const SSL_SESSION *x)
|
|||||||
s="SSLv3";
|
s="SSLv3";
|
||||||
else if (x->ssl_version == TLS1_VERSION)
|
else if (x->ssl_version == TLS1_VERSION)
|
||||||
s="TLSv1";
|
s="TLSv1";
|
||||||
|
else if (x->ssl_version == DTLS1_VERSION)
|
||||||
|
s="DTLSv1";
|
||||||
|
else if (x->ssl_version == DTLS1_BAD_VER)
|
||||||
|
s="DTLSv1-bad";
|
||||||
else
|
else
|
||||||
s="unknown";
|
s="unknown";
|
||||||
if (BIO_printf(bp," Protocol : %s\n",s) <= 0) goto err;
|
if (BIO_printf(bp," Protocol : %s\n",s) <= 0) goto err;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user