VirtualBox

source: vbox/trunk/src/libs/openssl-3.1.0/gen-includes/openssl/pkcs12.h@ 99863

Last change on this file since 99863 was 99371, checked in by vboxsync, 22 months ago

openssl-3.1.0: After generating headers and asm (kmk recreate-headers recreate-headers)

File size: 18.9 KB
Line 
1/*
2 * WARNING: do not edit!
3 * Generated by Makefile from pkcs12.h.in
4 *
5 * Copyright 1999-2022 The OpenSSL Project Authors. All Rights Reserved.
6 *
7 * Licensed under the Apache License 2.0 (the "License"). You may not use
8 * this file except in compliance with the License. You can obtain a copy
9 * in the file LICENSE in the source distribution or at
10 * https://www.openssl.org/source/license.html
11 */
12
13
14
15#ifndef OPENSSL_PKCS12_H
16# define OPENSSL_PKCS12_H
17# pragma once
18
19# include <openssl/macros.h>
20# ifndef OPENSSL_NO_DEPRECATED_3_0
21# define HEADER_PKCS12_H
22# endif
23
24# include <openssl/bio.h>
25# include <openssl/core.h>
26# include <openssl/x509.h>
27# include <openssl/pkcs12err.h>
28# ifndef OPENSSL_NO_STDIO
29# include <stdio.h>
30# endif
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
36# define PKCS12_KEY_ID 1
37# define PKCS12_IV_ID 2
38# define PKCS12_MAC_ID 3
39
40/* Default iteration count */
41# ifndef PKCS12_DEFAULT_ITER
42# define PKCS12_DEFAULT_ITER PKCS5_DEFAULT_ITER
43# endif
44
45# define PKCS12_MAC_KEY_LENGTH 20
46
47# define PKCS12_SALT_LEN 8
48
49/* It's not clear if these are actually needed... */
50# define PKCS12_key_gen PKCS12_key_gen_utf8
51# define PKCS12_add_friendlyname PKCS12_add_friendlyname_utf8
52
53/* MS key usage constants */
54
55# define KEY_EX 0x10
56# define KEY_SIG 0x80
57
58typedef struct PKCS12_MAC_DATA_st PKCS12_MAC_DATA;
59
60typedef struct PKCS12_st PKCS12;
61
62typedef struct PKCS12_SAFEBAG_st PKCS12_SAFEBAG;
63
64SKM_DEFINE_STACK_OF_INTERNAL(PKCS12_SAFEBAG, PKCS12_SAFEBAG, PKCS12_SAFEBAG)
65#define sk_PKCS12_SAFEBAG_num(sk) OPENSSL_sk_num(ossl_check_const_PKCS12_SAFEBAG_sk_type(sk))
66#define sk_PKCS12_SAFEBAG_value(sk, idx) ((PKCS12_SAFEBAG *)OPENSSL_sk_value(ossl_check_const_PKCS12_SAFEBAG_sk_type(sk), (idx)))
67#define sk_PKCS12_SAFEBAG_new(cmp) ((STACK_OF(PKCS12_SAFEBAG) *)OPENSSL_sk_new(ossl_check_PKCS12_SAFEBAG_compfunc_type(cmp)))
68#define sk_PKCS12_SAFEBAG_new_null() ((STACK_OF(PKCS12_SAFEBAG) *)OPENSSL_sk_new_null())
69#define sk_PKCS12_SAFEBAG_new_reserve(cmp, n) ((STACK_OF(PKCS12_SAFEBAG) *)OPENSSL_sk_new_reserve(ossl_check_PKCS12_SAFEBAG_compfunc_type(cmp), (n)))
70#define sk_PKCS12_SAFEBAG_reserve(sk, n) OPENSSL_sk_reserve(ossl_check_PKCS12_SAFEBAG_sk_type(sk), (n))
71#define sk_PKCS12_SAFEBAG_free(sk) OPENSSL_sk_free(ossl_check_PKCS12_SAFEBAG_sk_type(sk))
72#define sk_PKCS12_SAFEBAG_zero(sk) OPENSSL_sk_zero(ossl_check_PKCS12_SAFEBAG_sk_type(sk))
73#define sk_PKCS12_SAFEBAG_delete(sk, i) ((PKCS12_SAFEBAG *)OPENSSL_sk_delete(ossl_check_PKCS12_SAFEBAG_sk_type(sk), (i)))
74#define sk_PKCS12_SAFEBAG_delete_ptr(sk, ptr) ((PKCS12_SAFEBAG *)OPENSSL_sk_delete_ptr(ossl_check_PKCS12_SAFEBAG_sk_type(sk), ossl_check_PKCS12_SAFEBAG_type(ptr)))
75#define sk_PKCS12_SAFEBAG_push(sk, ptr) OPENSSL_sk_push(ossl_check_PKCS12_SAFEBAG_sk_type(sk), ossl_check_PKCS12_SAFEBAG_type(ptr))
76#define sk_PKCS12_SAFEBAG_unshift(sk, ptr) OPENSSL_sk_unshift(ossl_check_PKCS12_SAFEBAG_sk_type(sk), ossl_check_PKCS12_SAFEBAG_type(ptr))
77#define sk_PKCS12_SAFEBAG_pop(sk) ((PKCS12_SAFEBAG *)OPENSSL_sk_pop(ossl_check_PKCS12_SAFEBAG_sk_type(sk)))
78#define sk_PKCS12_SAFEBAG_shift(sk) ((PKCS12_SAFEBAG *)OPENSSL_sk_shift(ossl_check_PKCS12_SAFEBAG_sk_type(sk)))
79#define sk_PKCS12_SAFEBAG_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_PKCS12_SAFEBAG_sk_type(sk),ossl_check_PKCS12_SAFEBAG_freefunc_type(freefunc))
80#define sk_PKCS12_SAFEBAG_insert(sk, ptr, idx) OPENSSL_sk_insert(ossl_check_PKCS12_SAFEBAG_sk_type(sk), ossl_check_PKCS12_SAFEBAG_type(ptr), (idx))
81#define sk_PKCS12_SAFEBAG_set(sk, idx, ptr) ((PKCS12_SAFEBAG *)OPENSSL_sk_set(ossl_check_PKCS12_SAFEBAG_sk_type(sk), (idx), ossl_check_PKCS12_SAFEBAG_type(ptr)))
82#define sk_PKCS12_SAFEBAG_find(sk, ptr) OPENSSL_sk_find(ossl_check_PKCS12_SAFEBAG_sk_type(sk), ossl_check_PKCS12_SAFEBAG_type(ptr))
83#define sk_PKCS12_SAFEBAG_find_ex(sk, ptr) OPENSSL_sk_find_ex(ossl_check_PKCS12_SAFEBAG_sk_type(sk), ossl_check_PKCS12_SAFEBAG_type(ptr))
84#define sk_PKCS12_SAFEBAG_find_all(sk, ptr, pnum) OPENSSL_sk_find_all(ossl_check_PKCS12_SAFEBAG_sk_type(sk), ossl_check_PKCS12_SAFEBAG_type(ptr), pnum)
85#define sk_PKCS12_SAFEBAG_sort(sk) OPENSSL_sk_sort(ossl_check_PKCS12_SAFEBAG_sk_type(sk))
86#define sk_PKCS12_SAFEBAG_is_sorted(sk) OPENSSL_sk_is_sorted(ossl_check_const_PKCS12_SAFEBAG_sk_type(sk))
87#define sk_PKCS12_SAFEBAG_dup(sk) ((STACK_OF(PKCS12_SAFEBAG) *)OPENSSL_sk_dup(ossl_check_const_PKCS12_SAFEBAG_sk_type(sk)))
88#define sk_PKCS12_SAFEBAG_deep_copy(sk, copyfunc, freefunc) ((STACK_OF(PKCS12_SAFEBAG) *)OPENSSL_sk_deep_copy(ossl_check_const_PKCS12_SAFEBAG_sk_type(sk), ossl_check_PKCS12_SAFEBAG_copyfunc_type(copyfunc), ossl_check_PKCS12_SAFEBAG_freefunc_type(freefunc)))
89#define sk_PKCS12_SAFEBAG_set_cmp_func(sk, cmp) ((sk_PKCS12_SAFEBAG_compfunc)OPENSSL_sk_set_cmp_func(ossl_check_PKCS12_SAFEBAG_sk_type(sk), ossl_check_PKCS12_SAFEBAG_compfunc_type(cmp)))
90
91
92typedef struct pkcs12_bag_st PKCS12_BAGS;
93
94# define PKCS12_ERROR 0
95# define PKCS12_OK 1
96
97/* Compatibility macros */
98
99#ifndef OPENSSL_NO_DEPRECATED_1_1_0
100
101# define M_PKCS12_bag_type PKCS12_bag_type
102# define M_PKCS12_cert_bag_type PKCS12_cert_bag_type
103# define M_PKCS12_crl_bag_type PKCS12_cert_bag_type
104
105# define PKCS12_certbag2x509 PKCS12_SAFEBAG_get1_cert
106# define PKCS12_certbag2scrl PKCS12_SAFEBAG_get1_crl
107# define PKCS12_bag_type PKCS12_SAFEBAG_get_nid
108# define PKCS12_cert_bag_type PKCS12_SAFEBAG_get_bag_nid
109# define PKCS12_x5092certbag PKCS12_SAFEBAG_create_cert
110# define PKCS12_x509crl2certbag PKCS12_SAFEBAG_create_crl
111# define PKCS12_MAKE_KEYBAG PKCS12_SAFEBAG_create0_p8inf
112# define PKCS12_MAKE_SHKEYBAG PKCS12_SAFEBAG_create_pkcs8_encrypt
113
114#endif
115#ifndef OPENSSL_NO_DEPRECATED_1_1_0
116OSSL_DEPRECATEDIN_1_1_0 ASN1_TYPE *PKCS12_get_attr(const PKCS12_SAFEBAG *bag,
117 int attr_nid);
118#endif
119
120ASN1_TYPE *PKCS8_get_attr(PKCS8_PRIV_KEY_INFO *p8, int attr_nid);
121int PKCS12_mac_present(const PKCS12 *p12);
122void PKCS12_get0_mac(const ASN1_OCTET_STRING **pmac,
123 const X509_ALGOR **pmacalg,
124 const ASN1_OCTET_STRING **psalt,
125 const ASN1_INTEGER **piter,
126 const PKCS12 *p12);
127
128const ASN1_TYPE *PKCS12_SAFEBAG_get0_attr(const PKCS12_SAFEBAG *bag,
129 int attr_nid);
130const ASN1_OBJECT *PKCS12_SAFEBAG_get0_type(const PKCS12_SAFEBAG *bag);
131int PKCS12_SAFEBAG_get_nid(const PKCS12_SAFEBAG *bag);
132int PKCS12_SAFEBAG_get_bag_nid(const PKCS12_SAFEBAG *bag);
133const ASN1_TYPE *PKCS12_SAFEBAG_get0_bag_obj(const PKCS12_SAFEBAG *bag);
134const ASN1_OBJECT *PKCS12_SAFEBAG_get0_bag_type(const PKCS12_SAFEBAG *bag);
135
136X509 *PKCS12_SAFEBAG_get1_cert(const PKCS12_SAFEBAG *bag);
137X509_CRL *PKCS12_SAFEBAG_get1_crl(const PKCS12_SAFEBAG *bag);
138const STACK_OF(PKCS12_SAFEBAG) *
139PKCS12_SAFEBAG_get0_safes(const PKCS12_SAFEBAG *bag);
140const PKCS8_PRIV_KEY_INFO *PKCS12_SAFEBAG_get0_p8inf(const PKCS12_SAFEBAG *bag);
141const X509_SIG *PKCS12_SAFEBAG_get0_pkcs8(const PKCS12_SAFEBAG *bag);
142
143PKCS12_SAFEBAG *PKCS12_SAFEBAG_create_cert(X509 *x509);
144PKCS12_SAFEBAG *PKCS12_SAFEBAG_create_crl(X509_CRL *crl);
145PKCS12_SAFEBAG *PKCS12_SAFEBAG_create_secret(int type, int vtype, const unsigned char *value, int len);
146PKCS12_SAFEBAG *PKCS12_SAFEBAG_create0_p8inf(PKCS8_PRIV_KEY_INFO *p8);
147PKCS12_SAFEBAG *PKCS12_SAFEBAG_create0_pkcs8(X509_SIG *p8);
148PKCS12_SAFEBAG *PKCS12_SAFEBAG_create_pkcs8_encrypt(int pbe_nid,
149 const char *pass,
150 int passlen,
151 unsigned char *salt,
152 int saltlen, int iter,
153 PKCS8_PRIV_KEY_INFO *p8inf);
154PKCS12_SAFEBAG *PKCS12_SAFEBAG_create_pkcs8_encrypt_ex(int pbe_nid,
155 const char *pass,
156 int passlen,
157 unsigned char *salt,
158 int saltlen, int iter,
159 PKCS8_PRIV_KEY_INFO *p8inf,
160 OSSL_LIB_CTX *ctx,
161 const char *propq);
162
163PKCS12_SAFEBAG *PKCS12_item_pack_safebag(void *obj, const ASN1_ITEM *it,
164 int nid1, int nid2);
165PKCS8_PRIV_KEY_INFO *PKCS8_decrypt(const X509_SIG *p8, const char *pass,
166 int passlen);
167PKCS8_PRIV_KEY_INFO *PKCS8_decrypt_ex(const X509_SIG *p8, const char *pass,
168 int passlen, OSSL_LIB_CTX *ctx,
169 const char *propq);
170PKCS8_PRIV_KEY_INFO *PKCS12_decrypt_skey(const PKCS12_SAFEBAG *bag,
171 const char *pass, int passlen);
172PKCS8_PRIV_KEY_INFO *PKCS12_decrypt_skey_ex(const PKCS12_SAFEBAG *bag,
173 const char *pass, int passlen,
174 OSSL_LIB_CTX *ctx,
175 const char *propq);
176X509_SIG *PKCS8_encrypt(int pbe_nid, const EVP_CIPHER *cipher,
177 const char *pass, int passlen, unsigned char *salt,
178 int saltlen, int iter, PKCS8_PRIV_KEY_INFO *p8);
179X509_SIG *PKCS8_encrypt_ex(int pbe_nid, const EVP_CIPHER *cipher,
180 const char *pass, int passlen, unsigned char *salt,
181 int saltlen, int iter, PKCS8_PRIV_KEY_INFO *p8,
182 OSSL_LIB_CTX *ctx, const char *propq);
183X509_SIG *PKCS8_set0_pbe(const char *pass, int passlen,
184 PKCS8_PRIV_KEY_INFO *p8inf, X509_ALGOR *pbe);
185X509_SIG *PKCS8_set0_pbe_ex(const char *pass, int passlen,
186 PKCS8_PRIV_KEY_INFO *p8inf, X509_ALGOR *pbe,
187 OSSL_LIB_CTX *ctx, const char *propq);
188PKCS7 *PKCS12_pack_p7data(STACK_OF(PKCS12_SAFEBAG) *sk);
189STACK_OF(PKCS12_SAFEBAG) *PKCS12_unpack_p7data(PKCS7 *p7);
190PKCS7 *PKCS12_pack_p7encdata(int pbe_nid, const char *pass, int passlen,
191 unsigned char *salt, int saltlen, int iter,
192 STACK_OF(PKCS12_SAFEBAG) *bags);
193PKCS7 *PKCS12_pack_p7encdata_ex(int pbe_nid, const char *pass, int passlen,
194 unsigned char *salt, int saltlen, int iter,
195 STACK_OF(PKCS12_SAFEBAG) *bags,
196 OSSL_LIB_CTX *ctx, const char *propq);
197
198STACK_OF(PKCS12_SAFEBAG) *PKCS12_unpack_p7encdata(PKCS7 *p7, const char *pass,
199 int passlen);
200
201int PKCS12_pack_authsafes(PKCS12 *p12, STACK_OF(PKCS7) *safes);
202STACK_OF(PKCS7) *PKCS12_unpack_authsafes(const PKCS12 *p12);
203
204int PKCS12_add_localkeyid(PKCS12_SAFEBAG *bag, unsigned char *name,
205 int namelen);
206int PKCS12_add_friendlyname_asc(PKCS12_SAFEBAG *bag, const char *name,
207 int namelen);
208int PKCS12_add_friendlyname_utf8(PKCS12_SAFEBAG *bag, const char *name,
209 int namelen);
210int PKCS12_add_CSPName_asc(PKCS12_SAFEBAG *bag, const char *name,
211 int namelen);
212int PKCS12_add_friendlyname_uni(PKCS12_SAFEBAG *bag,
213 const unsigned char *name, int namelen);
214int PKCS12_add1_attr_by_NID(PKCS12_SAFEBAG *bag, int nid, int type,
215 const unsigned char *bytes, int len);
216int PKCS12_add1_attr_by_txt(PKCS12_SAFEBAG *bag, const char *attrname, int type,
217 const unsigned char *bytes, int len);
218int PKCS8_add_keyusage(PKCS8_PRIV_KEY_INFO *p8, int usage);
219ASN1_TYPE *PKCS12_get_attr_gen(const STACK_OF(X509_ATTRIBUTE) *attrs,
220 int attr_nid);
221char *PKCS12_get_friendlyname(PKCS12_SAFEBAG *bag);
222const STACK_OF(X509_ATTRIBUTE) *
223PKCS12_SAFEBAG_get0_attrs(const PKCS12_SAFEBAG *bag);
224unsigned char *PKCS12_pbe_crypt(const X509_ALGOR *algor,
225 const char *pass, int passlen,
226 const unsigned char *in, int inlen,
227 unsigned char **data, int *datalen,
228 int en_de);
229unsigned char *PKCS12_pbe_crypt_ex(const X509_ALGOR *algor,
230 const char *pass, int passlen,
231 const unsigned char *in, int inlen,
232 unsigned char **data, int *datalen,
233 int en_de, OSSL_LIB_CTX *libctx,
234 const char *propq);
235void *PKCS12_item_decrypt_d2i(const X509_ALGOR *algor, const ASN1_ITEM *it,
236 const char *pass, int passlen,
237 const ASN1_OCTET_STRING *oct, int zbuf);
238void *PKCS12_item_decrypt_d2i_ex(const X509_ALGOR *algor, const ASN1_ITEM *it,
239 const char *pass, int passlen,
240 const ASN1_OCTET_STRING *oct, int zbuf,
241 OSSL_LIB_CTX *libctx,
242 const char *propq);
243ASN1_OCTET_STRING *PKCS12_item_i2d_encrypt(X509_ALGOR *algor,
244 const ASN1_ITEM *it,
245 const char *pass, int passlen,
246 void *obj, int zbuf);
247ASN1_OCTET_STRING *PKCS12_item_i2d_encrypt_ex(X509_ALGOR *algor,
248 const ASN1_ITEM *it,
249 const char *pass, int passlen,
250 void *obj, int zbuf,
251 OSSL_LIB_CTX *ctx,
252 const char *propq);
253PKCS12 *PKCS12_init(int mode);
254PKCS12 *PKCS12_init_ex(int mode, OSSL_LIB_CTX *ctx, const char *propq);
255
256int PKCS12_key_gen_asc(const char *pass, int passlen, unsigned char *salt,
257 int saltlen, int id, int iter, int n,
258 unsigned char *out, const EVP_MD *md_type);
259int PKCS12_key_gen_asc_ex(const char *pass, int passlen, unsigned char *salt,
260 int saltlen, int id, int iter, int n,
261 unsigned char *out, const EVP_MD *md_type,
262 OSSL_LIB_CTX *ctx, const char *propq);
263int PKCS12_key_gen_uni(unsigned char *pass, int passlen, unsigned char *salt,
264 int saltlen, int id, int iter, int n,
265 unsigned char *out, const EVP_MD *md_type);
266int PKCS12_key_gen_uni_ex(unsigned char *pass, int passlen, unsigned char *salt,
267 int saltlen, int id, int iter, int n,
268 unsigned char *out, const EVP_MD *md_type,
269 OSSL_LIB_CTX *ctx, const char *propq);
270int PKCS12_key_gen_utf8(const char *pass, int passlen, unsigned char *salt,
271 int saltlen, int id, int iter, int n,
272 unsigned char *out, const EVP_MD *md_type);
273int PKCS12_key_gen_utf8_ex(const char *pass, int passlen, unsigned char *salt,
274 int saltlen, int id, int iter, int n,
275 unsigned char *out, const EVP_MD *md_type,
276 OSSL_LIB_CTX *ctx, const char *propq);
277
278int PKCS12_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,
279 ASN1_TYPE *param, const EVP_CIPHER *cipher,
280 const EVP_MD *md_type, int en_de);
281int PKCS12_PBE_keyivgen_ex(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,
282 ASN1_TYPE *param, const EVP_CIPHER *cipher,
283 const EVP_MD *md_type, int en_de,
284 OSSL_LIB_CTX *libctx, const char *propq);
285int PKCS12_gen_mac(PKCS12 *p12, const char *pass, int passlen,
286 unsigned char *mac, unsigned int *maclen);
287int PKCS12_verify_mac(PKCS12 *p12, const char *pass, int passlen);
288int PKCS12_set_mac(PKCS12 *p12, const char *pass, int passlen,
289 unsigned char *salt, int saltlen, int iter,
290 const EVP_MD *md_type);
291int PKCS12_setup_mac(PKCS12 *p12, int iter, unsigned char *salt,
292 int saltlen, const EVP_MD *md_type);
293unsigned char *OPENSSL_asc2uni(const char *asc, int asclen,
294 unsigned char **uni, int *unilen);
295char *OPENSSL_uni2asc(const unsigned char *uni, int unilen);
296unsigned char *OPENSSL_utf82uni(const char *asc, int asclen,
297 unsigned char **uni, int *unilen);
298char *OPENSSL_uni2utf8(const unsigned char *uni, int unilen);
299
300DECLARE_ASN1_FUNCTIONS(PKCS12)
301DECLARE_ASN1_FUNCTIONS(PKCS12_MAC_DATA)
302DECLARE_ASN1_FUNCTIONS(PKCS12_SAFEBAG)
303DECLARE_ASN1_FUNCTIONS(PKCS12_BAGS)
304
305DECLARE_ASN1_ITEM(PKCS12_SAFEBAGS)
306DECLARE_ASN1_ITEM(PKCS12_AUTHSAFES)
307
308void PKCS12_PBE_add(void);
309int PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert,
310 STACK_OF(X509) **ca);
311PKCS12 *PKCS12_create(const char *pass, const char *name, EVP_PKEY *pkey,
312 X509 *cert, STACK_OF(X509) *ca, int nid_key, int nid_cert,
313 int iter, int mac_iter, int keytype);
314PKCS12 *PKCS12_create_ex(const char *pass, const char *name, EVP_PKEY *pkey,
315 X509 *cert, STACK_OF(X509) *ca, int nid_key, int nid_cert,
316 int iter, int mac_iter, int keytype,
317 OSSL_LIB_CTX *ctx, const char *propq);
318
319PKCS12_SAFEBAG *PKCS12_add_cert(STACK_OF(PKCS12_SAFEBAG) **pbags, X509 *cert);
320PKCS12_SAFEBAG *PKCS12_add_key(STACK_OF(PKCS12_SAFEBAG) **pbags,
321 EVP_PKEY *key, int key_usage, int iter,
322 int key_nid, const char *pass);
323PKCS12_SAFEBAG *PKCS12_add_key_ex(STACK_OF(PKCS12_SAFEBAG) **pbags,
324 EVP_PKEY *key, int key_usage, int iter,
325 int key_nid, const char *pass,
326 OSSL_LIB_CTX *ctx, const char *propq);
327
328PKCS12_SAFEBAG *PKCS12_add_secret(STACK_OF(PKCS12_SAFEBAG) **pbags,
329 int nid_type, const unsigned char *value, int len);
330int PKCS12_add_safe(STACK_OF(PKCS7) **psafes, STACK_OF(PKCS12_SAFEBAG) *bags,
331 int safe_nid, int iter, const char *pass);
332int PKCS12_add_safe_ex(STACK_OF(PKCS7) **psafes, STACK_OF(PKCS12_SAFEBAG) *bags,
333 int safe_nid, int iter, const char *pass,
334 OSSL_LIB_CTX *ctx, const char *propq);
335
336PKCS12 *PKCS12_add_safes(STACK_OF(PKCS7) *safes, int p7_nid);
337PKCS12 *PKCS12_add_safes_ex(STACK_OF(PKCS7) *safes, int p7_nid,
338 OSSL_LIB_CTX *ctx, const char *propq);
339
340int i2d_PKCS12_bio(BIO *bp, const PKCS12 *p12);
341# ifndef OPENSSL_NO_STDIO
342int i2d_PKCS12_fp(FILE *fp, const PKCS12 *p12);
343# endif
344PKCS12 *d2i_PKCS12_bio(BIO *bp, PKCS12 **p12);
345# ifndef OPENSSL_NO_STDIO
346PKCS12 *d2i_PKCS12_fp(FILE *fp, PKCS12 **p12);
347# endif
348int PKCS12_newpass(PKCS12 *p12, const char *oldpass, const char *newpass);
349
350# ifdef __cplusplus
351}
352# endif
353#endif
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette