pkcs12.h (1965B)
1 /* pkcs12.h 2 * 3 * Copyright (C) 2006-2025 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 3 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 WC_NID_pbe_WithSHA1AndDES_CBC 2 32 #define WC_NID_pbe_WithSHA1And3_Key_TripleDES_CBC 3 33 #define WC_NID_pbe_WithSHA1And128BitRC4 1 34 35 #ifndef OPENSSL_COEXIST 36 37 #define NID_pbe_WithSHA1AndDES_CBC WC_NID_pbe_WithSHA1AndDES_CBC 38 #define NID_pbe_WithSHA1And3_Key_TripleDES_CBC WC_NID_pbe_WithSHA1And3_Key_TripleDES_CBC 39 #define NID_pbe_WithSHA1And128BitRC4 WC_NID_pbe_WithSHA1And128BitRC4 40 41 #define PKCS12_DEFAULT_ITER WC_PKCS12_ITT_DEFAULT 42 43 /* wolfCrypt level does not make use of ssl.h */ 44 #define PKCS12 WC_PKCS12 45 #define PKCS12_new wc_PKCS12_new 46 #define PKCS12_free wc_PKCS12_free 47 48 /* wolfSSL level using structs from ssl.h and calls down to wolfCrypt */ 49 #define d2i_PKCS12_bio wolfSSL_d2i_PKCS12_bio 50 #define PKCS12_parse wolfSSL_PKCS12_parse 51 #define PKCS12_verify_mac wolfSSL_PKCS12_verify_mac 52 #define PKCS12_create wolfSSL_PKCS12_create 53 #define PKCS12_PBE_add wolfSSL_PKCS12_PBE_add 54 55 #endif /* !OPENSSL_COEXIST */ 56 57 #endif /* WOLFSSL_PKCS12_COMPAT_H_ */