mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 21:55:31 +00:00
12f6bbbff2
--HG-- rename : security/nss/lib/freebl/sechash.h => security/nss/lib/cryptohi/sechash.h rename : security/nss/lib/softoken/secmodt.h => security/nss/lib/pk11wrap/secmodt.h rename : security/nss/lib/freebl/hasht.h => security/nss/lib/util/hasht.h extra : rebase_source : 7da6cd73ca2605a261085ad7fb3b90315e38ad6b
26 lines
755 B
C
26 lines
755 B
C
/* 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 _P12PLCY_H_
|
|
#define _P12PLCY_H_
|
|
|
|
#include "secoid.h"
|
|
#include "ciferfam.h"
|
|
|
|
SEC_BEGIN_PROTOS
|
|
|
|
/* for the algid specified, can we decrypt it ? */
|
|
extern PRBool SEC_PKCS12DecryptionAllowed(SECAlgorithmID *algid);
|
|
|
|
/* is encryption allowed? */
|
|
extern PRBool SEC_PKCS12IsEncryptionAllowed(void);
|
|
|
|
/* enable a cipher for encryption/decryption */
|
|
extern SECStatus SEC_PKCS12EnableCipher(long which, int on);
|
|
|
|
/* return the preferred cipher for encryption */
|
|
extern SECStatus SEC_PKCS12SetPreferredCipher(long which, int on);
|
|
|
|
SEC_END_PROTOS
|
|
#endif
|