mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 19:25:43 +00:00
404facfbbc
This flags is added in the http channel interface by which developers can control the TLS connections from JavaScript code (e.g. Add-ons). Basically, all the changes accounted for plumbing this TLS flags from JavaScript level to C++ code responsible for calling NSS module. We also added a unit test to make sure that separate connections are created if we use different tlsFlags. Basically we used a concrete set of flag values that covers the edge cases and check the hashkey generated in the connection info. --HG-- rename : netwerk/test/unit/test_separate_connections.js => netwerk/test/unit/test_tls_flags_separate_connections.js
27 lines
1003 B
C
27 lines
1003 B
C
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
*
|
|
* 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/. */
|
|
|
|
#ifndef nsSOCKSIOLayer_h__
|
|
#define nsSOCKSIOLayer_h__
|
|
|
|
#include "prio.h"
|
|
#include "nscore.h"
|
|
#include "nsIProxyInfo.h"
|
|
|
|
nsresult nsSOCKSIOLayerAddToSocket(int32_t family,
|
|
const char *host,
|
|
int32_t port,
|
|
nsIProxyInfo *proxyInfo,
|
|
int32_t socksVersion,
|
|
uint32_t flags,
|
|
uint32_t tlsFlags,
|
|
PRFileDesc *fd,
|
|
nsISupports **info);
|
|
|
|
bool IsHostLocalTarget(const nsACString& aHost);
|
|
|
|
#endif /* nsSOCKSIOLayer_h__ */
|