summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) \