michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: #ifndef _P12PLCY_H_ michael@0: #define _P12PLCY_H_ michael@0: michael@0: #include "secoid.h" michael@0: #include "ciferfam.h" michael@0: michael@0: SEC_BEGIN_PROTOS michael@0: michael@0: /* for the algid specified, can we decrypt it ? */ michael@0: extern PRBool SEC_PKCS12DecryptionAllowed(SECAlgorithmID *algid); michael@0: michael@0: /* is encryption allowed? */ michael@0: extern PRBool SEC_PKCS12IsEncryptionAllowed(void); michael@0: michael@0: /* enable a cipher for encryption/decryption */ michael@0: extern SECStatus SEC_PKCS12EnableCipher(long which, int on); michael@0: michael@0: /* return the preferred cipher for encryption */ michael@0: extern SECStatus SEC_PKCS12SetPreferredCipher(long which, int on); michael@0: michael@0: SEC_END_PROTOS michael@0: #endif