diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-05-28 18:10:47 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-05-28 18:10:47 +0000 |
commit | cc1cb996f163e542499941974543a224b5f0a516 (patch) | |
tree | 02237371cfc8bb8abc2e2226dd43415a5336574d /ssl/s3_lib.c | |
parent | 32fbeacdfb2a73cc04e4ecb06eaa23af91142414 (diff) |
Submitted by: Artem Chuprina <ran@cryptocom.ru>
Reviewed by: steve@openssl.org
Fix to match latest GOST in TLS draft.
Diffstat (limited to 'ssl/s3_lib.c')
-rw-r--r-- | ssl/s3_lib.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index 51ec94b5b1..7aa1c037b2 100644 --- a/ssl/s3_lib.c +++ b/ssl/s3_lib.c @@ -3087,6 +3087,18 @@ int ssl3_get_req_cert_type(SSL *s, unsigned char *p) alg_k = s->s3->tmp.new_cipher->algorithm_mkey; +#ifndef OPENSSL_NO_GOST + if (s->version >= TLS1_VERSION) + { + if (alg_k & SSL_kGOST) + { + p[ret++]=TLS_CT_GOST94_SIGN; + p[ret++]=TLS_CT_GOST01_SIGN; + return(ret); + } + } +#endif + #ifndef OPENSSL_NO_DH if (alg_k & (SSL_kDHr|SSL_kEDH)) { |