1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/manager/ssl/src/SSLServerCertVerification.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,24 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- 1.5 + * 1.6 + * This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 +#ifndef _SSLSERVERCERTVERIFICATION_H 1.10 +#define _SSLSERVERCERTVERIFICATION_H 1.11 + 1.12 +#include "seccomon.h" 1.13 +#include "prio.h" 1.14 + 1.15 +namespace mozilla { namespace psm { 1.16 + 1.17 +SECStatus AuthCertificateHook(void* arg, PRFileDesc* fd, 1.18 + PRBool checkSig, PRBool isServer); 1.19 + 1.20 +// EnsureServerVerificationInitialized() posts an event to a cert 1.21 +// verification thread to run nsINSSComponent::EnsureIdentityInfoLoaded() 1.22 +// exactly once. It must be called from socket thread. 1.23 +void EnsureServerVerificationInitialized(); 1.24 + 1.25 +} } // namespace mozilla::psm 1.26 + 1.27 +#endif