Add Next Protocol Negotiation.

This commit is contained in:
Ben Laurie
2011-11-13 21:55:42 +00:00
parent 4c02cf8ecc
commit 68b33cc5c7
16 changed files with 712 additions and 7 deletions

View File

@@ -3062,6 +3062,15 @@ void ssl3_clear(SSL *s)
s->s3->num_renegotiations=0;
s->s3->in_read_app_data=0;
s->version=SSL3_VERSION;
#if !defined(OPENSSL_NO_TLSEXT) && !defined(OPENSSL_NO_NEXTPROTONEG)
if (s->next_proto_negotiated)
{
OPENSSL_free(s->next_proto_negotiated);
s->next_proto_negotiated = NULL;
s->next_proto_negotiated_len = 0;
}
#endif
}
#ifndef OPENSSL_NO_SRP