Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include/openssl
File: pkcs12.h
/*
[0] Fix | Delete
* Copyright 1999-2016 The OpenSSL Project Authors. All Rights Reserved.
[1] Fix | Delete
*
[2] Fix | Delete
* Licensed under the OpenSSL license (the "License"). You may not use
[3] Fix | Delete
* this file except in compliance with the License. You can obtain a copy
[4] Fix | Delete
* in the file LICENSE in the source distribution or at
[5] Fix | Delete
* https://www.openssl.org/source/license.html
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
#ifndef HEADER_PKCS12_H
[9] Fix | Delete
# define HEADER_PKCS12_H
[10] Fix | Delete
[11] Fix | Delete
# include <openssl/bio.h>
[12] Fix | Delete
# include <openssl/x509.h>
[13] Fix | Delete
# include <openssl/pkcs12err.h>
[14] Fix | Delete
[15] Fix | Delete
#ifdef __cplusplus
[16] Fix | Delete
extern "C" {
[17] Fix | Delete
#endif
[18] Fix | Delete
[19] Fix | Delete
# define PKCS12_KEY_ID 1
[20] Fix | Delete
# define PKCS12_IV_ID 2
[21] Fix | Delete
# define PKCS12_MAC_ID 3
[22] Fix | Delete
[23] Fix | Delete
/* Default iteration count */
[24] Fix | Delete
# ifndef PKCS12_DEFAULT_ITER
[25] Fix | Delete
# define PKCS12_DEFAULT_ITER PKCS5_DEFAULT_ITER
[26] Fix | Delete
# endif
[27] Fix | Delete
[28] Fix | Delete
# define PKCS12_MAC_KEY_LENGTH 20
[29] Fix | Delete
[30] Fix | Delete
# define PKCS12_SALT_LEN 8
[31] Fix | Delete
[32] Fix | Delete
/* It's not clear if these are actually needed... */
[33] Fix | Delete
# define PKCS12_key_gen PKCS12_key_gen_utf8
[34] Fix | Delete
# define PKCS12_add_friendlyname PKCS12_add_friendlyname_utf8
[35] Fix | Delete
[36] Fix | Delete
/* MS key usage constants */
[37] Fix | Delete
[38] Fix | Delete
# define KEY_EX 0x10
[39] Fix | Delete
# define KEY_SIG 0x80
[40] Fix | Delete
[41] Fix | Delete
typedef struct PKCS12_MAC_DATA_st PKCS12_MAC_DATA;
[42] Fix | Delete
[43] Fix | Delete
typedef struct PKCS12_st PKCS12;
[44] Fix | Delete
[45] Fix | Delete
typedef struct PKCS12_SAFEBAG_st PKCS12_SAFEBAG;
[46] Fix | Delete
[47] Fix | Delete
DEFINE_STACK_OF(PKCS12_SAFEBAG)
[48] Fix | Delete
[49] Fix | Delete
typedef struct pkcs12_bag_st PKCS12_BAGS;
[50] Fix | Delete
[51] Fix | Delete
# define PKCS12_ERROR 0
[52] Fix | Delete
# define PKCS12_OK 1
[53] Fix | Delete
[54] Fix | Delete
/* Compatibility macros */
[55] Fix | Delete
[56] Fix | Delete
#if OPENSSL_API_COMPAT < 0x10100000L
[57] Fix | Delete
[58] Fix | Delete
# define M_PKCS12_bag_type PKCS12_bag_type
[59] Fix | Delete
# define M_PKCS12_cert_bag_type PKCS12_cert_bag_type
[60] Fix | Delete
# define M_PKCS12_crl_bag_type PKCS12_cert_bag_type
[61] Fix | Delete
[62] Fix | Delete
# define PKCS12_certbag2x509 PKCS12_SAFEBAG_get1_cert
[63] Fix | Delete
# define PKCS12_certbag2scrl PKCS12_SAFEBAG_get1_crl
[64] Fix | Delete
# define PKCS12_bag_type PKCS12_SAFEBAG_get_nid
[65] Fix | Delete
# define PKCS12_cert_bag_type PKCS12_SAFEBAG_get_bag_nid
[66] Fix | Delete
# define PKCS12_x5092certbag PKCS12_SAFEBAG_create_cert
[67] Fix | Delete
# define PKCS12_x509crl2certbag PKCS12_SAFEBAG_create_crl
[68] Fix | Delete
# define PKCS12_MAKE_KEYBAG PKCS12_SAFEBAG_create0_p8inf
[69] Fix | Delete
# define PKCS12_MAKE_SHKEYBAG PKCS12_SAFEBAG_create_pkcs8_encrypt
[70] Fix | Delete
[71] Fix | Delete
#endif
[72] Fix | Delete
[73] Fix | Delete
DEPRECATEDIN_1_1_0(ASN1_TYPE *PKCS12_get_attr(const PKCS12_SAFEBAG *bag, int attr_nid))
[74] Fix | Delete
[75] Fix | Delete
ASN1_TYPE *PKCS8_get_attr(PKCS8_PRIV_KEY_INFO *p8, int attr_nid);
[76] Fix | Delete
int PKCS12_mac_present(const PKCS12 *p12);
[77] Fix | Delete
void PKCS12_get0_mac(const ASN1_OCTET_STRING **pmac,
[78] Fix | Delete
const X509_ALGOR **pmacalg,
[79] Fix | Delete
const ASN1_OCTET_STRING **psalt,
[80] Fix | Delete
const ASN1_INTEGER **piter,
[81] Fix | Delete
const PKCS12 *p12);
[82] Fix | Delete
[83] Fix | Delete
const ASN1_TYPE *PKCS12_SAFEBAG_get0_attr(const PKCS12_SAFEBAG *bag,
[84] Fix | Delete
int attr_nid);
[85] Fix | Delete
const ASN1_OBJECT *PKCS12_SAFEBAG_get0_type(const PKCS12_SAFEBAG *bag);
[86] Fix | Delete
int PKCS12_SAFEBAG_get_nid(const PKCS12_SAFEBAG *bag);
[87] Fix | Delete
int PKCS12_SAFEBAG_get_bag_nid(const PKCS12_SAFEBAG *bag);
[88] Fix | Delete
[89] Fix | Delete
X509 *PKCS12_SAFEBAG_get1_cert(const PKCS12_SAFEBAG *bag);
[90] Fix | Delete
X509_CRL *PKCS12_SAFEBAG_get1_crl(const PKCS12_SAFEBAG *bag);
[91] Fix | Delete
const STACK_OF(PKCS12_SAFEBAG) *
[92] Fix | Delete
PKCS12_SAFEBAG_get0_safes(const PKCS12_SAFEBAG *bag);
[93] Fix | Delete
const PKCS8_PRIV_KEY_INFO *PKCS12_SAFEBAG_get0_p8inf(const PKCS12_SAFEBAG *bag);
[94] Fix | Delete
const X509_SIG *PKCS12_SAFEBAG_get0_pkcs8(const PKCS12_SAFEBAG *bag);
[95] Fix | Delete
[96] Fix | Delete
PKCS12_SAFEBAG *PKCS12_SAFEBAG_create_cert(X509 *x509);
[97] Fix | Delete
PKCS12_SAFEBAG *PKCS12_SAFEBAG_create_crl(X509_CRL *crl);
[98] Fix | Delete
PKCS12_SAFEBAG *PKCS12_SAFEBAG_create0_p8inf(PKCS8_PRIV_KEY_INFO *p8);
[99] Fix | Delete
PKCS12_SAFEBAG *PKCS12_SAFEBAG_create0_pkcs8(X509_SIG *p8);
[100] Fix | Delete
PKCS12_SAFEBAG *PKCS12_SAFEBAG_create_pkcs8_encrypt(int pbe_nid,
[101] Fix | Delete
const char *pass,
[102] Fix | Delete
int passlen,
[103] Fix | Delete
unsigned char *salt,
[104] Fix | Delete
int saltlen, int iter,
[105] Fix | Delete
PKCS8_PRIV_KEY_INFO *p8inf);
[106] Fix | Delete
[107] Fix | Delete
PKCS12_SAFEBAG *PKCS12_item_pack_safebag(void *obj, const ASN1_ITEM *it,
[108] Fix | Delete
int nid1, int nid2);
[109] Fix | Delete
PKCS8_PRIV_KEY_INFO *PKCS8_decrypt(const X509_SIG *p8, const char *pass,
[110] Fix | Delete
int passlen);
[111] Fix | Delete
PKCS8_PRIV_KEY_INFO *PKCS12_decrypt_skey(const PKCS12_SAFEBAG *bag,
[112] Fix | Delete
const char *pass, int passlen);
[113] Fix | Delete
X509_SIG *PKCS8_encrypt(int pbe_nid, const EVP_CIPHER *cipher,
[114] Fix | Delete
const char *pass, int passlen, unsigned char *salt,
[115] Fix | Delete
int saltlen, int iter, PKCS8_PRIV_KEY_INFO *p8);
[116] Fix | Delete
X509_SIG *PKCS8_set0_pbe(const char *pass, int passlen,
[117] Fix | Delete
PKCS8_PRIV_KEY_INFO *p8inf, X509_ALGOR *pbe);
[118] Fix | Delete
PKCS7 *PKCS12_pack_p7data(STACK_OF(PKCS12_SAFEBAG) *sk);
[119] Fix | Delete
STACK_OF(PKCS12_SAFEBAG) *PKCS12_unpack_p7data(PKCS7 *p7);
[120] Fix | Delete
PKCS7 *PKCS12_pack_p7encdata(int pbe_nid, const char *pass, int passlen,
[121] Fix | Delete
unsigned char *salt, int saltlen, int iter,
[122] Fix | Delete
STACK_OF(PKCS12_SAFEBAG) *bags);
[123] Fix | Delete
STACK_OF(PKCS12_SAFEBAG) *PKCS12_unpack_p7encdata(PKCS7 *p7, const char *pass,
[124] Fix | Delete
int passlen);
[125] Fix | Delete
[126] Fix | Delete
int PKCS12_pack_authsafes(PKCS12 *p12, STACK_OF(PKCS7) *safes);
[127] Fix | Delete
STACK_OF(PKCS7) *PKCS12_unpack_authsafes(const PKCS12 *p12);
[128] Fix | Delete
[129] Fix | Delete
int PKCS12_add_localkeyid(PKCS12_SAFEBAG *bag, unsigned char *name,
[130] Fix | Delete
int namelen);
[131] Fix | Delete
int PKCS12_add_friendlyname_asc(PKCS12_SAFEBAG *bag, const char *name,
[132] Fix | Delete
int namelen);
[133] Fix | Delete
int PKCS12_add_friendlyname_utf8(PKCS12_SAFEBAG *bag, const char *name,
[134] Fix | Delete
int namelen);
[135] Fix | Delete
int PKCS12_add_CSPName_asc(PKCS12_SAFEBAG *bag, const char *name,
[136] Fix | Delete
int namelen);
[137] Fix | Delete
int PKCS12_add_friendlyname_uni(PKCS12_SAFEBAG *bag,
[138] Fix | Delete
const unsigned char *name, int namelen);
[139] Fix | Delete
int PKCS8_add_keyusage(PKCS8_PRIV_KEY_INFO *p8, int usage);
[140] Fix | Delete
ASN1_TYPE *PKCS12_get_attr_gen(const STACK_OF(X509_ATTRIBUTE) *attrs,
[141] Fix | Delete
int attr_nid);
[142] Fix | Delete
char *PKCS12_get_friendlyname(PKCS12_SAFEBAG *bag);
[143] Fix | Delete
const STACK_OF(X509_ATTRIBUTE) *
[144] Fix | Delete
PKCS12_SAFEBAG_get0_attrs(const PKCS12_SAFEBAG *bag);
[145] Fix | Delete
unsigned char *PKCS12_pbe_crypt(const X509_ALGOR *algor,
[146] Fix | Delete
const char *pass, int passlen,
[147] Fix | Delete
const unsigned char *in, int inlen,
[148] Fix | Delete
unsigned char **data, int *datalen,
[149] Fix | Delete
int en_de);
[150] Fix | Delete
void *PKCS12_item_decrypt_d2i(const X509_ALGOR *algor, const ASN1_ITEM *it,
[151] Fix | Delete
const char *pass, int passlen,
[152] Fix | Delete
const ASN1_OCTET_STRING *oct, int zbuf);
[153] Fix | Delete
ASN1_OCTET_STRING *PKCS12_item_i2d_encrypt(X509_ALGOR *algor,
[154] Fix | Delete
const ASN1_ITEM *it,
[155] Fix | Delete
const char *pass, int passlen,
[156] Fix | Delete
void *obj, int zbuf);
[157] Fix | Delete
PKCS12 *PKCS12_init(int mode);
[158] Fix | Delete
int PKCS12_key_gen_asc(const char *pass, int passlen, unsigned char *salt,
[159] Fix | Delete
int saltlen, int id, int iter, int n,
[160] Fix | Delete
unsigned char *out, const EVP_MD *md_type);
[161] Fix | Delete
int PKCS12_key_gen_uni(unsigned char *pass, int passlen, unsigned char *salt,
[162] Fix | Delete
int saltlen, int id, int iter, int n,
[163] Fix | Delete
unsigned char *out, const EVP_MD *md_type);
[164] Fix | Delete
int PKCS12_key_gen_utf8(const char *pass, int passlen, unsigned char *salt,
[165] Fix | Delete
int saltlen, int id, int iter, int n,
[166] Fix | Delete
unsigned char *out, const EVP_MD *md_type);
[167] Fix | Delete
int PKCS12_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,
[168] Fix | Delete
ASN1_TYPE *param, const EVP_CIPHER *cipher,
[169] Fix | Delete
const EVP_MD *md_type, int en_de);
[170] Fix | Delete
int PKCS12_gen_mac(PKCS12 *p12, const char *pass, int passlen,
[171] Fix | Delete
unsigned char *mac, unsigned int *maclen);
[172] Fix | Delete
int PKCS12_verify_mac(PKCS12 *p12, const char *pass, int passlen);
[173] Fix | Delete
int PKCS12_set_mac(PKCS12 *p12, const char *pass, int passlen,
[174] Fix | Delete
unsigned char *salt, int saltlen, int iter,
[175] Fix | Delete
const EVP_MD *md_type);
[176] Fix | Delete
int PKCS12_setup_mac(PKCS12 *p12, int iter, unsigned char *salt,
[177] Fix | Delete
int saltlen, const EVP_MD *md_type);
[178] Fix | Delete
unsigned char *OPENSSL_asc2uni(const char *asc, int asclen,
[179] Fix | Delete
unsigned char **uni, int *unilen);
[180] Fix | Delete
char *OPENSSL_uni2asc(const unsigned char *uni, int unilen);
[181] Fix | Delete
unsigned char *OPENSSL_utf82uni(const char *asc, int asclen,
[182] Fix | Delete
unsigned char **uni, int *unilen);
[183] Fix | Delete
char *OPENSSL_uni2utf8(const unsigned char *uni, int unilen);
[184] Fix | Delete
[185] Fix | Delete
DECLARE_ASN1_FUNCTIONS(PKCS12)
[186] Fix | Delete
DECLARE_ASN1_FUNCTIONS(PKCS12_MAC_DATA)
[187] Fix | Delete
DECLARE_ASN1_FUNCTIONS(PKCS12_SAFEBAG)
[188] Fix | Delete
DECLARE_ASN1_FUNCTIONS(PKCS12_BAGS)
[189] Fix | Delete
[190] Fix | Delete
DECLARE_ASN1_ITEM(PKCS12_SAFEBAGS)
[191] Fix | Delete
DECLARE_ASN1_ITEM(PKCS12_AUTHSAFES)
[192] Fix | Delete
[193] Fix | Delete
void PKCS12_PBE_add(void);
[194] Fix | Delete
int PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert,
[195] Fix | Delete
STACK_OF(X509) **ca);
[196] Fix | Delete
PKCS12 *PKCS12_create(const char *pass, const char *name, EVP_PKEY *pkey,
[197] Fix | Delete
X509 *cert, STACK_OF(X509) *ca, int nid_key, int nid_cert,
[198] Fix | Delete
int iter, int mac_iter, int keytype);
[199] Fix | Delete
[200] Fix | Delete
PKCS12_SAFEBAG *PKCS12_add_cert(STACK_OF(PKCS12_SAFEBAG) **pbags, X509 *cert);
[201] Fix | Delete
PKCS12_SAFEBAG *PKCS12_add_key(STACK_OF(PKCS12_SAFEBAG) **pbags,
[202] Fix | Delete
EVP_PKEY *key, int key_usage, int iter,
[203] Fix | Delete
int key_nid, const char *pass);
[204] Fix | Delete
int PKCS12_add_safe(STACK_OF(PKCS7) **psafes, STACK_OF(PKCS12_SAFEBAG) *bags,
[205] Fix | Delete
int safe_nid, int iter, const char *pass);
[206] Fix | Delete
PKCS12 *PKCS12_add_safes(STACK_OF(PKCS7) *safes, int p7_nid);
[207] Fix | Delete
[208] Fix | Delete
int i2d_PKCS12_bio(BIO *bp, PKCS12 *p12);
[209] Fix | Delete
# ifndef OPENSSL_NO_STDIO
[210] Fix | Delete
int i2d_PKCS12_fp(FILE *fp, PKCS12 *p12);
[211] Fix | Delete
# endif
[212] Fix | Delete
PKCS12 *d2i_PKCS12_bio(BIO *bp, PKCS12 **p12);
[213] Fix | Delete
# ifndef OPENSSL_NO_STDIO
[214] Fix | Delete
PKCS12 *d2i_PKCS12_fp(FILE *fp, PKCS12 **p12);
[215] Fix | Delete
# endif
[216] Fix | Delete
int PKCS12_newpass(PKCS12 *p12, const char *oldpass, const char *newpass);
[217] Fix | Delete
[218] Fix | Delete
# ifdef __cplusplus
[219] Fix | Delete
}
[220] Fix | Delete
# endif
[221] Fix | Delete
#endif
[222] Fix | Delete
[223] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function