2000-09-22 04:42:20 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
2012-05-21 11:12:37 +00:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2000-09-22 04:42:20 +00:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
2001-05-18 00:02:46 +00:00
|
|
|
interface nsIInterfaceRequestor;
|
|
|
|
|
2011-12-13 15:55:50 +00:00
|
|
|
%{C++
|
|
|
|
#include "nsTArray.h"
|
|
|
|
class nsCString;
|
|
|
|
%}
|
|
|
|
[ref] native nsCStringTArrayRef(nsTArray<nsCString>);
|
|
|
|
|
2012-06-30 14:34:17 +00:00
|
|
|
[scriptable, uuid(bb2bb490-3ba4-4254-b8f5-8b43c7b714ea)]
|
2001-01-19 01:12:10 +00:00
|
|
|
interface nsISSLSocketControl : nsISupports {
|
2001-05-18 00:02:46 +00:00
|
|
|
attribute nsIInterfaceRequestor notificationCallbacks;
|
|
|
|
|
2002-08-14 23:43:28 +00:00
|
|
|
void proxyStartSSL();
|
|
|
|
void StartTLS();
|
2011-12-13 15:55:50 +00:00
|
|
|
|
|
|
|
/* NPN (Next Protocol Negotiation) is a mechanism for
|
|
|
|
negotiating the protocol to be spoken inside the SSL
|
|
|
|
tunnel during the SSL handshake. The NPNList is the list
|
|
|
|
of offered client side protocols. setNPNList() needs to
|
|
|
|
be called before any data is read or written (including the
|
|
|
|
handshake to be setup correctly. */
|
|
|
|
|
|
|
|
[noscript] void setNPNList(in nsCStringTArrayRef aNPNList);
|
|
|
|
|
|
|
|
/* negotiatedNPN is '' if no NPN list was provided by the client,
|
|
|
|
* or if the server did not select any protocol choice from that
|
|
|
|
* list. That also includes the case where the server does not
|
|
|
|
* implement NPN.
|
|
|
|
*
|
|
|
|
* If negotiatedNPN is read before NPN has progressed to the point
|
|
|
|
* where this information is available NS_ERROR_NOT_CONNECTED is
|
|
|
|
* raised.
|
|
|
|
*/
|
|
|
|
readonly attribute ACString negotiatedNPN;
|
|
|
|
|
|
|
|
/* Determine if a potential SSL connection to hostname:port with
|
|
|
|
* a desired NPN negotiated protocol of npnProtocol can use the socket
|
|
|
|
* associated with this object instead of making a new one.
|
|
|
|
*/
|
|
|
|
boolean joinConnection(
|
|
|
|
in ACString npnProtocol, /* e.g. "spdy/2" */
|
|
|
|
in ACString hostname,
|
|
|
|
in long port);
|
2012-06-30 14:34:17 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* The original flags from the socket provider.
|
|
|
|
*/
|
|
|
|
readonly attribute uint32_t providerFlags;
|
2000-09-22 04:42:20 +00:00
|
|
|
};
|
|
|
|
|