summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>1999-05-09 15:45:38 +0000
committerBodo Möller <bodo@openssl.org>1999-05-09 15:45:38 +0000
commit8450bddfaf0f7f48982949c21419692d2965789a (patch)
tree4bbdd16e038a4cab0f611fc8640aa27e57c2052a
parenta0d0c6a61bd9364dd411e1538b65efa9392c8f92 (diff)
Some tiny changes to the source code to make future diffs smaller
when restructuring the cert_st handling (removed unnused parts, and the like). Submitted by: Reviewed by: PR:
-rw-r--r--ssl/ssl.h1
-rw-r--r--ssl/ssl_locl.h27
2 files changed, 12 insertions, 16 deletions
diff --git a/ssl/ssl.h b/ssl/ssl.h
index c494ed120b..98f64c26ec 100644
--- a/ssl/ssl.h
+++ b/ssl/ssl.h
@@ -562,6 +562,7 @@ struct ssl_st
/* client cert? */
/* This is used to hold the server certificate used */
struct cert_st /* CERT */ *cert;
+ /* XXX should be struct sess_cert_st *sess_cert */
/* the session_id_context is used to ensure sessions are only reused
* in the appropriate context */
diff --git a/ssl/ssl_locl.h b/ssl/ssl_locl.h
index 28e05615fa..f9635d6a8d 100644
--- a/ssl/ssl_locl.h
+++ b/ssl/ssl_locl.h
@@ -247,7 +247,6 @@
typedef struct cert_pkey_st
{
X509 *x509;
-/* EVP_PKEY *publickey; *//* when extracted */
EVP_PKEY *privatekey;
} CERT_PKEY;
@@ -255,16 +254,6 @@ typedef struct cert_st
{
int cert_type;
-#ifdef undef
- X509 *x509;
- EVP_PKEY *publickey; /* when extracted */
- EVP_PKEY *privatekey;
-
- pkeys[SSL_PKEY_RSA_ENC].x509
-/* pkeys[SSL_PKEY_RSA_ENC].publickey */
- pkeys[SSL_PKEY_RSA_ENC].privatekey
-#endif
-
/* Current active set */
CERT_PKEY *key;
@@ -279,19 +268,25 @@ typedef struct cert_st
#endif
#ifndef NO_DH
DH *dh_tmp;
- /* FIXME: Although rsa_tmp and dh_tmp are properties of the cert,
- callbacks probably aren't, and besides only the context default
- cert's callbacks are actually used. Too close to a release to fix
- this now - Ben 6 Mar 1999 */
DH *(*dh_tmp_cb)(SSL *ssl,int export,int keysize);
#endif
+
CERT_PKEY pkeys[SSL_PKEY_NUM];
- STACK_OF(X509) *cert_chain;
+ STACK_OF(X509) *cert_chain; /* XXX should only exist in sess_cert_st */
int references;
} CERT;
+
+#if 0 /* XXX not yet */
+typedef struct sess_cert_st
+{
+ /* anything that we want to keep per session */
+} SESS_CERT;
+#endif
+
+
/*#define MAC_DEBUG */
/*#define ERR_DEBUG */