summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Thomson <martin.thomson@gmail.com>2017-11-21 18:06:29 +1100
committerMartin Thomson <martin.thomson@gmail.com>2017-11-21 18:06:29 +1100
commitfed3164a89512361b81a33a4ba1c57c21ab1c80e (patch)
treec38a19d59cc58e3e16cb8781c7cc43ed0b2da8a1
parentc1993ae759338f0ddb4c17a687f13f50181449b0 (diff)
downloadnss-hg-fed3164a89512361b81a33a4ba1c57c21ab1c80e.tar.gz
Bug 1415795 - Provide a macro to support removal of experimental APIs, r=franziskus
Summary: This is what I should have used when renaming. Reviewers: franziskus, ekr Reviewed By: ekr, franziskus Bug #: 1415795 Differential Revision: https://phabricator.services.mozilla.com/D222
-rw-r--r--lib/ssl/sslexp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ssl/sslexp.h b/lib/ssl/sslexp.h
index 688903e9a..bf9d5b5b6 100644
--- a/lib/ssl/sslexp.h
+++ b/lib/ssl/sslexp.h
@@ -21,6 +21,8 @@ SEC_BEGIN_PROTOS
(SSL_GetExperimentalAPI(name) \
? ((SECStatus(*) arglist)SSL_GetExperimentalAPI(name))args \
: SECFailure)
+#define SSL_DEPRECATED_EXPERIMENTAL_API \
+ (PR_SetError(SSL_ERROR_UNSUPPORTED_EXPERIMENTAL_API, 0), SECFailure)
/* Make the TLS 1.3 handshake mimic TLS 1.2 session resumption.
* This will either become part of the standard or be disabled