diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2015-05-12 18:56:39 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2015-05-18 18:49:13 +0100 |
commit | d376e57d6826e56f4c922806e088a111c52f9e92 (patch) | |
tree | 777c49481bd4b5e4ef4aa3fa3a222ec297c2c4d1 /ssl/ssl_locl.h | |
parent | 76106e60a827ddaefe1fee28a749018241d8f517 (diff) |
Move signing digest out of CERT.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'ssl/ssl_locl.h')
-rw-r--r-- | ssl/ssl_locl.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ssl/ssl_locl.h b/ssl/ssl_locl.h index 28a120158d..72971c48b1 100644 --- a/ssl/ssl_locl.h +++ b/ssl/ssl_locl.h @@ -1291,6 +1291,10 @@ typedef struct ssl3_state_st { unsigned char *peer_sigalgs; /* Size of above array */ size_t peer_sigalgslen; + /* Digest peer uses for signing */ + const EVP_MD *peer_md; + /* Array of digests used for signing */ + const EVP_MD *md[SSL_PKEY_NUM]; } tmp; /* Connection binding to prevent renegotiation attacks */ @@ -1439,8 +1443,6 @@ typedef struct dtls1_state_st { typedef struct cert_pkey_st { X509 *x509; EVP_PKEY *privatekey; - /* Digest to use when signing */ - const EVP_MD *digest; /* Chain for this certificate */ STACK_OF(X509) *chain; # ifndef OPENSSL_NO_TLSEXT @@ -1870,7 +1872,6 @@ void ssl_clear_cipher_ctx(SSL *s); int ssl_clear_bad_session(SSL *s); __owur CERT *ssl_cert_new(void); __owur CERT *ssl_cert_dup(CERT *cert); -void ssl_cert_set_default_md(CERT *cert); void ssl_cert_clear_certs(CERT *c); void ssl_cert_free(CERT *c); __owur SESS_CERT *ssl_sess_cert_new(void); |