diff options
author | Ben Laurie <ben@openssl.org> | 1999-02-21 21:58:59 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 1999-02-21 21:58:59 +0000 |
commit | 60e31c3a4bbdbdb4259eaa3c48639f3e3915f380 (patch) | |
tree | 1cd83e30167ca83bdca1282101d9119af64cc01d /ssl/s3_lib.c | |
parent | a040ea8251cbbda301b140693e14c5d82ca83880 (diff) |
More stuff for new TLS ciphersuites.
Diffstat (limited to 'ssl/s3_lib.c')
-rw-r--r-- | ssl/s3_lib.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index 4d79895e99..b6f5d82f21 100644 --- a/ssl/s3_lib.c +++ b/ssl/s3_lib.c @@ -752,15 +752,16 @@ STACK *have,*pref; else cert=s->ctx->default_cert; - ssl_set_cert_masks(cert); - mask=cert->mask; - emask=cert->export_mask; - sk_set_cmp_func(pref,ssl_cipher_ptr_id_cmp); for (i=0; i<sk_num(have); i++) { c=(SSL_CIPHER *)sk_value(have,i); + + ssl_set_cert_masks(cert,c); + mask=cert->mask; + emask=cert->export_mask; + alg=c->algorithms&(SSL_MKEY_MASK|SSL_AUTH_MASK); if (SSL_IS_EXPORT(alg)) { |