Add certificate callback. If set this is called whenever a certificate
authorDr. Stephen Henson <steve@openssl.org>
Fri, 29 Jun 2012 14:24:42 +0000 (14:24 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 29 Jun 2012 14:24:42 +0000 (14:24 +0000)
commit18d7158809c9722f4c6d2a8af7513577274f9b56
tree21cf503b096928ae887c28b997622eb4ee6bfd70
parent0f39bab0df4109bab7effc7428e1d759f36d8642
Add certificate callback. If set this is called whenever a certificate
is required by client or server. An application can decide which
certificate chain to present based on arbitrary criteria: for example
supported signature algorithms. Add very simple example to s_server.
This fixes many of the problems and restrictions of the existing client
certificate callback: for example you can now clear existing certificates
and specify the whole chain.
14 files changed:
CHANGES
apps/s_apps.h
apps/s_cb.c
apps/s_server.c
demos/certs/apps/mkxcerts.sh [new file with mode: 0644]
ssl/s3_clnt.c
ssl/s3_srvr.c
ssl/ssl.h
ssl/ssl_cert.c
ssl/ssl_err.c
ssl/ssl_lib.c
ssl/ssl_locl.h
ssl/t1_lib.c
ssl/tls1.h