summaryrefslogtreecommitdiffstats
path: root/security/manager/ssl/nsITLSSocketControl.idl
diff options
context:
space:
mode:
Diffstat (limited to 'security/manager/ssl/nsITLSSocketControl.idl')
-rw-r--r--security/manager/ssl/nsITLSSocketControl.idl11
1 files changed, 9 insertions, 2 deletions
diff --git a/security/manager/ssl/nsITLSSocketControl.idl b/security/manager/ssl/nsITLSSocketControl.idl
index a0b6e47c73..361af98faa 100644
--- a/security/manager/ssl/nsITLSSocketControl.idl
+++ b/security/manager/ssl/nsITLSSocketControl.idl
@@ -23,8 +23,15 @@ interface nsIX509Cert;
// thread (except for asyncGetSecurityInfo);
[scriptable, builtinclass, uuid(418265c8-654e-4fbb-ba62-4eed27de1f03)]
interface nsITLSSocketControl : nsISupports {
- void proxyStartSSL();
- void StartTLS();
+ [noscript] void proxyStartSSL();
+ [noscript] void StartTLS();
+
+ /**
+ * Calls StartTLS on the socket thread, and resolves with the nsresult
+ * return value of that call.
+ */
+ [implicit_jscontext,must_use]
+ Promise asyncStartTLS();
/* NPN (Next Protocol Negotiation) is a mechanism for
negotiating the protocol to be spoken inside the SSL