1 /* pkcs12.h
2  *
3  * Copyright (C) 2006-2021 wolfSSL Inc.
4  *
5  * This file is part of wolfSSL.
6  *
7  * wolfSSL is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * wolfSSL is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
20  */
21 
22 /* pkcs12.h for openssl */
23 
24 
25 #include <wolfssl/openssl/ssl.h>
26 #include <wolfssl/wolfcrypt/pkcs12.h>
27 
28 #ifndef WOLFSSL_PKCS12_COMPAT_H_
29 #define WOLFSSL_PKCS12_COMPAT_H_
30 
31 #define NID_pbe_WithSHA1AndDES_CBC             2
32 #define NID_pbe_WithSHA1And3_Key_TripleDES_CBC 3
33 #define NID_pbe_WithSHA1And128BitRC4           1
34 
35 #define PKCS12_DEFAULT_ITER WC_PKCS12_ITT_DEFAULT
36 
37 /* wolfCrypt level does not make use of ssl.h */
38 #define PKCS12         WC_PKCS12
39 #define PKCS12_new     wc_PKCS12_new
40 #define PKCS12_free    wc_PKCS12_free
41 
42 /* wolfSSL level using structs from ssl.h and calls down to wolfCrypt */
43 #define d2i_PKCS12_bio wolfSSL_d2i_PKCS12_bio
44 #define PKCS12_parse   wolfSSL_PKCS12_parse
45 #define PKCS12_verify_mac wolfSSL_PKCS12_verify_mac
46 #define PKCS12_create  wolfSSL_PKCS12_create
47 #define PKCS12_PBE_add wolfSSL_PKCS12_PBE_add
48 
49 #endif /* WOLFSSL_PKCS12_COMPAT_H_ */
50 
51