summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Laurie <ben@links.org>2014-07-06 07:35:25 +0100
committerBen Laurie <ben@links.org>2014-07-06 10:09:16 +0100
commit36e74e496d41c47a7b08c50e6829759304d2b02a (patch)
tree1a8419a955b8a9aff1988b1521f8a11c8d39a7f2
parent79b537ea20c43f7099c8cc56a125f1aa44696b41 (diff)
downloadopenssl-new-36e74e496d41c47a7b08c50e6829759304d2b02a.tar.gz
Make tlsext_statustype an enum.
-rw-r--r--ssl/s3_lib.c2
-rw-r--r--ssl/tls1.h6
2 files changed, 5 insertions, 3 deletions
diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c
index ddb4f2453e..3d5b46f781 100644
--- a/ssl/s3_lib.c
+++ b/ssl/s3_lib.c
@@ -3376,7 +3376,7 @@ void SSL_set_tlsext_debug_arg(SSL *s, void *arg)
s->tlsext_debug_arg = arg;
}
-void SSL_set_tlsext_status_type(SSL *s, int type)
+void SSL_set_tlsext_status_type(SSL *s, enum tlsext_statustype type)
{
s->tlsext_status_type = type;
}
diff --git a/ssl/tls1.h b/ssl/tls1.h
index 737e9aace5..e434aba3c5 100644
--- a/ssl/tls1.h
+++ b/ssl/tls1.h
@@ -270,7 +270,9 @@ enum tlsext_nametype {
TLSEXT_NAMETYPE_error = 256
};
/* status request value from RFC 3546 */
-#define TLSEXT_STATUSTYPE_ocsp 1
+enum tlsext_statustype {
+ TLSEXT_STATUSTYPE_ocsp = 1
+};
/* ECPointFormat values from draft-ietf-tls-ecc-12 */
#define TLSEXT_ECPOINTFORMAT_first 0
@@ -342,7 +344,7 @@ void SSL_set_tlsext_debug_callback(SSL *s, void (*cb)(SSL *, int ,int,
unsigned char *, int,
void *));
void SSL_set_tlsext_debug_arg(SSL *s, void *arg);
-void SSL_set_tlsext_status_type(SSL *ssl, int type);
+void SSL_set_tlsext_status_type(SSL *s, enum tlsext_statustype type);
#endif /* ndef OPENSSL_NO_TLSEXT */
#define SSL_get_tlsext_status_exts(ssl, arg) \