wolfSSL SSL/TLS library, support up to TLS1.3

Dependents:   OS

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers pkcs12.h Source File

pkcs12.h

00001 /* pkcs12.h
00002  *
00003  * Copyright (C) 2006-2017 wolfSSL Inc.
00004  *
00005  * This file is part of wolfSSL.
00006  *
00007  * wolfSSL is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 2 of the License, or
00010  * (at your option) any later version.
00011  *
00012  * wolfSSL is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
00020  */
00021 
00022 /* pkcs12.h for openssl */
00023 
00024 
00025 #include <wolfssl/openssl/ssl.h>
00026 #include <wolfssl/wolfcrypt/pkcs12.h>
00027 
00028 #ifndef WOLFSSL_PKCS12_COMPAT_H_
00029 #define WOLFSSL_PKCS12_COMPAT_H_
00030 
00031 #define NID_pbe_WithSHA1AndDES_CBC             2
00032 #define NID_pbe_WithSHA1And3_Key_TripleDES_CBC 3
00033 #define NID_pbe_WithSHA1And128BitRC4           1
00034 
00035 #define PKCS12_DEFAULT_ITER WC_PKCS12_ITT_DEFAULT
00036 
00037 /* wolfCrypt level does not make use of ssl.h */
00038 #define PKCS12         WC_PKCS12
00039 #define PKCS12_new     wc_PKCS12_new
00040 #define PKCS12_free    wc_PKCS12_free
00041 
00042 /* wolfSSL level using structs from ssl.h and calls down to wolfCrypt */
00043 #define d2i_PKCS12_bio wolfSSL_d2i_PKCS12_bio
00044 #define PKCS12_parse   wolfSSL_PKCS12_parse
00045 #define PKCS12_create  wolfSSL_PKCS12_create
00046 #define PKCS12_PBE_add wolfSSL_PKCS12_PBE_add
00047 
00048 #endif /* WOLFSSL_PKCS12_COMPAT_H_ */
00049 
00050