No actual change, but the cert_st member of struct ssl_session_st is now

called sess_cert instead of just cert.  This is in preparation of further
changes: Probably often when s->session->sess_cert is used, we should
use s->cert instead; s->session->sess_cert should be a new structure
containing only the stuff that is for just one connection (e.g.
the peer's certificate, which the SSL client implementations currently
store in s->session->[sess_]cert, which is a very confusing thing to do).
Submitted by:
Reviewed by:
PR:
This commit is contained in:
Bodo Möller
1999-05-09 21:22:45 +00:00
parent ca8e5b9b8a
commit 9d5cceac6f
7 changed files with 55 additions and 54 deletions

View File

@@ -241,11 +241,13 @@ typedef struct ssl_session_st
int not_resumable;
/* The cert is the certificate used to establish this connection */
struct cert_st /* CERT */ *cert;
struct cert_st /* CERT */ *sess_cert;
/* XXX should be struct sess_cert_st *sess_cert */
/* This is the cert for the other end. On servers, it will be
* the same as cert->x509 */
/* This is the cert for the other end.
* On clients, it will be the same as sess_cert->key->x509
* (the latter is not enough as sess_cert is not retained
* in the external representation of sessions, see ssl_asn1.c). */
X509 *peer;
int references;