]> git.saurik.com Git - apple/security.git/blame - SecurityTests/cspxutils/dbTool/dbCert.h
Security-57031.1.35.tar.gz
[apple/security.git] / SecurityTests / cspxutils / dbTool / dbCert.h
CommitLineData
b1ab9ed8
A
1/*
2 * Copyright (c) 2003 Apple Computer, Inc. All Rights Reserved.
3 *
4 * The contents of this file constitute Original Code as defined in and are
5 * subject to the Apple Public Source License Version 1.2 (the 'License').
6 * You may not use this file except in compliance with the License. Please
7 * obtain a copy of the License at http://www.apple.com/publicsource and
8 * read it before using this file.
9 *
10 * This Original Code and all software distributed under the License are
11 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
12 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
13 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
14 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
15 * Please see the License for the specific language governing rights and
16 * limitations under the License.
17 */
d8f41ccd 18
b1ab9ed8 19/*
d8f41ccd 20 * dbCert.h - import a possibly bad cert along with its private key
b1ab9ed8
A
21 */
22
d8f41ccd
A
23#ifndef _DB_CERT_H_
24#define _DB_CERT_H_
b1ab9ed8
A
25
26#include <Security/cssmtype.h>
b1ab9ed8
A
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
d8f41ccd
A
32CSSM_RETURN importBadCert(
33 CSSM_DL_HANDLE dlHand,
34 const char *dbFileName,
35 const char *certFile,
36 const char *keyFile,
37 CSSM_ALGORITHMS keyAlg,
38 CSSM_BOOL pemFormat, // of the file
39 CSSM_KEYBLOB_FORMAT keyFormat, // of the key blob itself, NONE means
40 // use default
41 CSSM_BOOL verbose);
b1ab9ed8
A
42
43#ifdef __cplusplus
44}
45#endif
46
d8f41ccd 47#endif /* _DB_CERT_H_ */
b1ab9ed8 48