2011-12-01 22:37:57 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
2012-05-31 09:33:35 +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/. */
|
2011-12-01 22:37:57 +00:00
|
|
|
#ifndef _SSLSERVERCERTVERIFICATION_H
|
|
|
|
#define _SSLSERVERCERTVERIFICATION_H
|
|
|
|
|
|
|
|
#include "seccomon.h"
|
2012-01-31 16:04:57 +00:00
|
|
|
#include "prio.h"
|
2011-12-01 22:37:57 +00:00
|
|
|
|
|
|
|
namespace mozilla { namespace psm {
|
|
|
|
|
2014-01-22 01:30:44 +00:00
|
|
|
SECStatus AuthCertificateHook(void* arg, PRFileDesc* fd,
|
2011-12-01 22:37:57 +00:00
|
|
|
PRBool checkSig, PRBool isServer);
|
|
|
|
|
2012-11-22 20:57:59 +00:00
|
|
|
// EnsureServerVerificationInitialized() posts an event to a cert
|
|
|
|
// verification thread to run nsINSSComponent::EnsureIdentityInfoLoaded()
|
|
|
|
// exactly once. It must be called from socket thread.
|
|
|
|
void EnsureServerVerificationInitialized();
|
2014-01-22 01:30:44 +00:00
|
|
|
|
2011-12-01 22:37:57 +00:00
|
|
|
} } // namespace mozilla::psm
|
|
|
|
|
|
|
|
#endif
|