зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1558877. Remove nsITLSServerSocket.setCipherSuites. r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D34746 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
9d535a8d72
Коммит
918f4befd5
|
@ -190,30 +190,6 @@ TLSServerSocket::SetRequestClientCertificate(uint32_t aMode) {
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
TLSServerSocket::SetCipherSuites(uint16_t* aCipherSuites, uint32_t aLength) {
|
||||
// If AsyncListen was already called (and set mListener), it's too late to set
|
||||
// this.
|
||||
if (NS_WARN_IF(mListener)) {
|
||||
return NS_ERROR_IN_PROGRESS;
|
||||
}
|
||||
|
||||
for (uint16_t i = 0; i < SSL_NumImplementedCiphers; ++i) {
|
||||
uint16_t cipher_id = SSL_ImplementedCiphers[i];
|
||||
if (SSL_CipherPrefSet(mFD, cipher_id, false) != SECSuccess) {
|
||||
return mozilla::psm::GetXPCOMFromNSSError(PR_GetError());
|
||||
}
|
||||
}
|
||||
|
||||
for (uint32_t i = 0; i < aLength; ++i) {
|
||||
if (SSL_CipherPrefSet(mFD, aCipherSuites[i], true) != SECSuccess) {
|
||||
return mozilla::psm::GetXPCOMFromNSSError(PR_GetError());
|
||||
}
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
TLSServerSocket::SetVersionRange(uint16_t aMinVersion, uint16_t aMaxVersion) {
|
||||
// If AsyncListen was already called (and set mListener), it's too late to set
|
||||
|
|
|
@ -52,15 +52,6 @@ interface nsITLSServerSocket : nsIServerSocket
|
|||
*/
|
||||
void setRequestClientCertificate(in unsigned long aRequestClientCert);
|
||||
|
||||
/**
|
||||
* setCipherSuites
|
||||
*
|
||||
* The server's cipher suites that is used by the TLS handshake.
|
||||
* This is required to be set before calling |asyncListen|.
|
||||
*/
|
||||
void setCipherSuites([array, size_is(aLength)] in unsigned short aCipherSuites,
|
||||
in unsigned long aLength);
|
||||
|
||||
/**
|
||||
* setVersionRange
|
||||
*
|
||||
|
|
Загрузка…
Ссылка в новой задаче