summaryrefslogtreecommitdiffstats
path: root/ssl/tls1.h
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2012-04-06 19:29:49 +0000
committerDr. Stephen Henson <steve@openssl.org>2012-04-06 19:29:49 +0000
commit5505818199557d4e591dd73637d020732b44ca02 (patch)
tree537cac207984063670b414923bc6587c80ebae57 /ssl/tls1.h
parent7493bcc659a6d1cff73d7974f18a73331e978657 (diff)
New ctrls to retrieve supported signature algorithms and curves and
extensions to s_client and s_server to print out retrieved valued. Extend CERT structure to cache supported signature algorithm data. (backport from HEAD)
Diffstat (limited to 'ssl/tls1.h')
-rw-r--r--ssl/tls1.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ssl/tls1.h b/ssl/tls1.h
index c39c267f0b..a11caf820a 100644
--- a/ssl/tls1.h
+++ b/ssl/tls1.h
@@ -274,6 +274,8 @@ extern "C" {
#define TLSEXT_hash_sha256 4
#define TLSEXT_hash_sha384 5
#define TLSEXT_hash_sha512 6
+/* Flag set for unrecognised algorithms */
+#define TLSEXT_nid_unknown 0x1000000
#ifndef OPENSSL_NO_TLSEXT
@@ -292,6 +294,10 @@ int SSL_export_keying_material(SSL *s, unsigned char *out, size_t olen,
const char *label, size_t llen, const unsigned char *p, size_t plen,
int use_context);
+int SSL_get_sigalgs(SSL *s, int idx,
+ int *psign, int *phash, int *psignandhash,
+ unsigned char *rsig, unsigned char *rhash);
+
#define SSL_set_tlsext_host_name(s,name) \
SSL_ctrl(s,SSL_CTRL_SET_TLSEXT_HOSTNAME,TLSEXT_NAMETYPE_host_name,(char *)name)