source: asp3_tinet_ecnl_arm/trunk/wolfssl-3.12.2/wolfssl/wolfcrypt/pkcs12.h@ 352

Last change on this file since 352 was 352, checked in by coas-nagasima, 6 years ago

arm向けASP3版ECNLを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-chdr;charset=UTF-8
File size: 1.7 KB
Line 
1/* pkcs12.h
2 *
3 * Copyright (C) 2006-2017 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
23#ifndef WOLF_CRYPT_PKCS12_H
24#define WOLF_CRYPT_PKCS12_H
25
26#include <wolfssl/wolfcrypt/types.h>
27
28#ifdef __cplusplus
29 extern "C" {
30#endif
31
32#ifndef WOLFSSL_TYPES_DEFINED /* do not redeclare from ssl.h */
33 typedef struct WC_PKCS12 WC_PKCS12;
34#endif
35
36typedef struct WC_DerCertList { /* dereferenced in ssl.c */
37 byte* buffer;
38 word32 bufferSz;
39 struct WC_DerCertList* next;
40} WC_DerCertList;
41
42
43
44WOLFSSL_API WC_PKCS12* wc_PKCS12_new(void);
45WOLFSSL_API void wc_PKCS12_free(WC_PKCS12* pkcs12);
46WOLFSSL_API int wc_d2i_PKCS12(const byte* der, word32 derSz, WC_PKCS12* pkcs12);
47WOLFSSL_API int wc_PKCS12_parse(WC_PKCS12* pkcs12, const char* psw,
48 byte** pkey, word32* pkeySz, byte** cert, word32* certSz,
49 WC_DerCertList** ca);
50
51WOLFSSL_LOCAL int wc_PKCS12_SetHeap(WC_PKCS12* pkcs12, void* heap);
52WOLFSSL_LOCAL void* wc_PKCS12_GetHeap(WC_PKCS12* pkcs12);
53
54
55#ifdef __cplusplus
56 } /* extern "C" */
57#endif
58
59#endif /* WOLF_CRYPT_PKCS12_H */
60
Note: See TracBrowser for help on using the repository browser.