• Home
  • Raw
  • Download

Lines Matching refs:OPENSSL_EXPORT

483 OPENSSL_EXPORT long X509_get_version(const X509 *x509);
486 OPENSSL_EXPORT const ASN1_INTEGER *X509_get0_serialNumber(const X509 *x509);
489 OPENSSL_EXPORT const ASN1_TIME *X509_get0_notBefore(const X509 *x509);
492 OPENSSL_EXPORT const ASN1_TIME *X509_get0_notAfter(const X509 *x509);
496 OPENSSL_EXPORT int X509_set1_notBefore(X509 *x509, const ASN1_TIME *tm);
500 OPENSSL_EXPORT int X509_set1_notAfter(X509 *x509, const ASN1_TIME *tm);
503 OPENSSL_EXPORT ASN1_TIME *X509_getm_notBefore(X509 *x509);
506 OPENSSL_EXPORT ASN1_TIME *X509_getm_notAfter(X509 *x);
511 OPENSSL_EXPORT ASN1_TIME *X509_get_notBefore(const X509 *x509);
516 OPENSSL_EXPORT ASN1_TIME *X509_get_notAfter(const X509 *x509);
520 OPENSSL_EXPORT int X509_set_notBefore(X509 *x509, const ASN1_TIME *tm);
524 OPENSSL_EXPORT int X509_set_notAfter(X509 *x509, const ASN1_TIME *tm);
529 OPENSSL_EXPORT void X509_get0_uids(const X509 *x509,
538 OPENSSL_EXPORT X509_CINF *X509_get_cert_info(const X509 *x509);
551 OPENSSL_EXPORT long X509_get_pathlen(X509 *x509);
556 OPENSSL_EXPORT long X509_REQ_get_version(const X509_REQ *req);
560 OPENSSL_EXPORT X509_NAME *X509_REQ_get_subject_name(const X509_REQ *req);
571 OPENSSL_EXPORT long X509_CRL_get_version(const X509_CRL *crl);
574 OPENSSL_EXPORT const ASN1_TIME *X509_CRL_get0_lastUpdate(const X509_CRL *crl);
578 OPENSSL_EXPORT const ASN1_TIME *X509_CRL_get0_nextUpdate(const X509_CRL *crl);
582 OPENSSL_EXPORT int X509_CRL_set1_lastUpdate(X509_CRL *crl, const ASN1_TIME *tm);
586 OPENSSL_EXPORT int X509_CRL_set1_nextUpdate(X509_CRL *crl, const ASN1_TIME *tm);
594 OPENSSL_EXPORT ASN1_TIME *X509_CRL_get_lastUpdate(X509_CRL *crl);
599 OPENSSL_EXPORT ASN1_TIME *X509_CRL_get_nextUpdate(X509_CRL *crl);
603 OPENSSL_EXPORT X509_NAME *X509_CRL_get_issuer(const X509_CRL *crl);
610 OPENSSL_EXPORT STACK_OF(X509_REVOKED) *X509_CRL_get_REVOKED(X509_CRL *crl);
613 OPENSSL_EXPORT const STACK_OF(X509_EXTENSION) *X509_CRL_get0_extensions(
621 OPENSSL_EXPORT void X509_CINF_set_modified(X509_CINF *cinf);
630 OPENSSL_EXPORT const X509_ALGOR *X509_CINF_get_signature(const X509_CINF *cinf);
635 OPENSSL_EXPORT void X509_SIG_get0(const X509_SIG *sig,
640 OPENSSL_EXPORT void X509_SIG_getm(X509_SIG *sig, X509_ALGOR **out_alg,
643 OPENSSL_EXPORT void X509_CRL_set_default_method(const X509_CRL_METHOD *meth);
644 OPENSSL_EXPORT X509_CRL_METHOD *X509_CRL_METHOD_new(
649 OPENSSL_EXPORT void X509_CRL_METHOD_free(X509_CRL_METHOD *m);
651 OPENSSL_EXPORT void X509_CRL_set_meth_data(X509_CRL *crl, void *dat);
652 OPENSSL_EXPORT void *X509_CRL_get_meth_data(X509_CRL *crl);
657 OPENSSL_EXPORT X509_PUBKEY *X509_get_X509_PUBKEY(const X509 *x509);
665 OPENSSL_EXPORT const char *X509_verify_cert_error_string(long err);
671 OPENSSL_EXPORT int X509_verify(X509 *x509, EVP_PKEY *pkey);
675 OPENSSL_EXPORT int X509_REQ_verify(X509_REQ *req, EVP_PKEY *pkey);
679 OPENSSL_EXPORT int X509_CRL_verify(X509_CRL *crl, EVP_PKEY *pkey);
683 OPENSSL_EXPORT int NETSCAPE_SPKI_verify(NETSCAPE_SPKI *spki, EVP_PKEY *pkey);
690 OPENSSL_EXPORT NETSCAPE_SPKI *NETSCAPE_SPKI_b64_decode(const char *str,
697 OPENSSL_EXPORT char *NETSCAPE_SPKI_b64_encode(NETSCAPE_SPKI *spki);
702 OPENSSL_EXPORT EVP_PKEY *NETSCAPE_SPKI_get_pubkey(NETSCAPE_SPKI *spki);
707 OPENSSL_EXPORT int NETSCAPE_SPKI_set_pubkey(NETSCAPE_SPKI *spki,
712 OPENSSL_EXPORT int X509_signature_dump(BIO *bio, const ASN1_STRING *sig,
717 OPENSSL_EXPORT int X509_signature_print(BIO *bio, const X509_ALGOR *alg,
724 OPENSSL_EXPORT int X509_sign(X509 *x509, EVP_PKEY *pkey, const EVP_MD *md);
731 OPENSSL_EXPORT int X509_sign_ctx(X509 *x509, EVP_MD_CTX *ctx);
738 OPENSSL_EXPORT int X509_REQ_sign(X509_REQ *req, EVP_PKEY *pkey,
746 OPENSSL_EXPORT int X509_REQ_sign_ctx(X509_REQ *req, EVP_MD_CTX *ctx);
753 OPENSSL_EXPORT int X509_CRL_sign(X509_CRL *crl, EVP_PKEY *pkey,
761 OPENSSL_EXPORT int X509_CRL_sign_ctx(X509_CRL *crl, EVP_MD_CTX *ctx);
767 OPENSSL_EXPORT int NETSCAPE_SPKI_sign(NETSCAPE_SPKI *spki, EVP_PKEY *pkey,
775 OPENSSL_EXPORT int X509_pubkey_digest(const X509 *x509, const EVP_MD *md,
783 OPENSSL_EXPORT int X509_digest(const X509 *x509, const EVP_MD *md, uint8_t *out,
791 OPENSSL_EXPORT int X509_CRL_digest(const X509_CRL *crl, const EVP_MD *md,
800 OPENSSL_EXPORT int X509_REQ_digest(const X509_REQ *req, const EVP_MD *md,
807 OPENSSL_EXPORT int X509_NAME_digest(const X509_NAME *name, const EVP_MD *md,
814 OPENSSL_EXPORT X509 *X509_parse_from_buffer(CRYPTO_BUFFER *buf);
817 OPENSSL_EXPORT X509 *d2i_X509_fp(FILE *fp, X509 **x509);
818 OPENSSL_EXPORT int i2d_X509_fp(FILE *fp, X509 *x509);
819 OPENSSL_EXPORT X509_CRL *d2i_X509_CRL_fp(FILE *fp, X509_CRL **crl);
820 OPENSSL_EXPORT int i2d_X509_CRL_fp(FILE *fp, X509_CRL *crl);
821 OPENSSL_EXPORT X509_REQ *d2i_X509_REQ_fp(FILE *fp, X509_REQ **req);
822 OPENSSL_EXPORT int i2d_X509_REQ_fp(FILE *fp, X509_REQ *req);
823 OPENSSL_EXPORT RSA *d2i_RSAPrivateKey_fp(FILE *fp, RSA **rsa);
824 OPENSSL_EXPORT int i2d_RSAPrivateKey_fp(FILE *fp, RSA *rsa);
825 OPENSSL_EXPORT RSA *d2i_RSAPublicKey_fp(FILE *fp, RSA **rsa);
826 OPENSSL_EXPORT int i2d_RSAPublicKey_fp(FILE *fp, RSA *rsa);
827 OPENSSL_EXPORT RSA *d2i_RSA_PUBKEY_fp(FILE *fp, RSA **rsa);
828 OPENSSL_EXPORT int i2d_RSA_PUBKEY_fp(FILE *fp, RSA *rsa);
830 OPENSSL_EXPORT DSA *d2i_DSA_PUBKEY_fp(FILE *fp, DSA **dsa);
831 OPENSSL_EXPORT int i2d_DSA_PUBKEY_fp(FILE *fp, DSA *dsa);
832 OPENSSL_EXPORT DSA *d2i_DSAPrivateKey_fp(FILE *fp, DSA **dsa);
833 OPENSSL_EXPORT int i2d_DSAPrivateKey_fp(FILE *fp, DSA *dsa);
835 OPENSSL_EXPORT EC_KEY *d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey);
836 OPENSSL_EXPORT int i2d_EC_PUBKEY_fp(FILE *fp, EC_KEY *eckey);
837 OPENSSL_EXPORT EC_KEY *d2i_ECPrivateKey_fp(FILE *fp, EC_KEY **eckey);
838 OPENSSL_EXPORT int i2d_ECPrivateKey_fp(FILE *fp, EC_KEY *eckey);
839 OPENSSL_EXPORT X509_SIG *d2i_PKCS8_fp(FILE *fp, X509_SIG **p8);
840 OPENSSL_EXPORT int i2d_PKCS8_fp(FILE *fp, X509_SIG *p8);
841 OPENSSL_EXPORT PKCS8_PRIV_KEY_INFO *d2i_PKCS8_PRIV_KEY_INFO_fp(
843 OPENSSL_EXPORT int i2d_PKCS8_PRIV_KEY_INFO_fp(FILE *fp,
845 OPENSSL_EXPORT int i2d_PKCS8PrivateKeyInfo_fp(FILE *fp, EVP_PKEY *key);
846 OPENSSL_EXPORT int i2d_PrivateKey_fp(FILE *fp, EVP_PKEY *pkey);
847 OPENSSL_EXPORT EVP_PKEY *d2i_PrivateKey_fp(FILE *fp, EVP_PKEY **a);
848 OPENSSL_EXPORT int i2d_PUBKEY_fp(FILE *fp, EVP_PKEY *pkey);
849 OPENSSL_EXPORT EVP_PKEY *d2i_PUBKEY_fp(FILE *fp, EVP_PKEY **a);
852 OPENSSL_EXPORT X509 *d2i_X509_bio(BIO *bp, X509 **x509);
853 OPENSSL_EXPORT int i2d_X509_bio(BIO *bp, X509 *x509);
854 OPENSSL_EXPORT X509_CRL *d2i_X509_CRL_bio(BIO *bp, X509_CRL **crl);
855 OPENSSL_EXPORT int i2d_X509_CRL_bio(BIO *bp, X509_CRL *crl);
856 OPENSSL_EXPORT X509_REQ *d2i_X509_REQ_bio(BIO *bp, X509_REQ **req);
857 OPENSSL_EXPORT int i2d_X509_REQ_bio(BIO *bp, X509_REQ *req);
858 OPENSSL_EXPORT RSA *d2i_RSAPrivateKey_bio(BIO *bp, RSA **rsa);
859 OPENSSL_EXPORT int i2d_RSAPrivateKey_bio(BIO *bp, RSA *rsa);
860 OPENSSL_EXPORT RSA *d2i_RSAPublicKey_bio(BIO *bp, RSA **rsa);
861 OPENSSL_EXPORT int i2d_RSAPublicKey_bio(BIO *bp, RSA *rsa);
862 OPENSSL_EXPORT RSA *d2i_RSA_PUBKEY_bio(BIO *bp, RSA **rsa);
863 OPENSSL_EXPORT int i2d_RSA_PUBKEY_bio(BIO *bp, RSA *rsa);
865 OPENSSL_EXPORT DSA *d2i_DSA_PUBKEY_bio(BIO *bp, DSA **dsa);
866 OPENSSL_EXPORT int i2d_DSA_PUBKEY_bio(BIO *bp, DSA *dsa);
867 OPENSSL_EXPORT DSA *d2i_DSAPrivateKey_bio(BIO *bp, DSA **dsa);
868 OPENSSL_EXPORT int i2d_DSAPrivateKey_bio(BIO *bp, DSA *dsa);
870 OPENSSL_EXPORT EC_KEY *d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey);
871 OPENSSL_EXPORT int i2d_EC_PUBKEY_bio(BIO *bp, EC_KEY *eckey);
872 OPENSSL_EXPORT EC_KEY *d2i_ECPrivateKey_bio(BIO *bp, EC_KEY **eckey);
873 OPENSSL_EXPORT int i2d_ECPrivateKey_bio(BIO *bp, EC_KEY *eckey);
874 OPENSSL_EXPORT X509_SIG *d2i_PKCS8_bio(BIO *bp, X509_SIG **p8);
875 OPENSSL_EXPORT int i2d_PKCS8_bio(BIO *bp, X509_SIG *p8);
876 OPENSSL_EXPORT PKCS8_PRIV_KEY_INFO *d2i_PKCS8_PRIV_KEY_INFO_bio(
878 OPENSSL_EXPORT int i2d_PKCS8_PRIV_KEY_INFO_bio(BIO *bp,
880 OPENSSL_EXPORT int i2d_PKCS8PrivateKeyInfo_bio(BIO *bp, EVP_PKEY *key);
881 OPENSSL_EXPORT int i2d_PrivateKey_bio(BIO *bp, EVP_PKEY *pkey);
882 OPENSSL_EXPORT EVP_PKEY *d2i_PrivateKey_bio(BIO *bp, EVP_PKEY **a);
883 OPENSSL_EXPORT int i2d_PUBKEY_bio(BIO *bp, EVP_PKEY *pkey);
884 OPENSSL_EXPORT EVP_PKEY *d2i_PUBKEY_bio(BIO *bp, EVP_PKEY **a);
885 OPENSSL_EXPORT DH *d2i_DHparams_bio(BIO *bp, DH **dh);
886 OPENSSL_EXPORT int i2d_DHparams_bio(BIO *bp, const DH *dh);
888 OPENSSL_EXPORT X509 *X509_dup(X509 *x509);
889 OPENSSL_EXPORT X509_ATTRIBUTE *X509_ATTRIBUTE_dup(X509_ATTRIBUTE *xa);
890 OPENSSL_EXPORT X509_EXTENSION *X509_EXTENSION_dup(X509_EXTENSION *ex);
891 OPENSSL_EXPORT X509_CRL *X509_CRL_dup(X509_CRL *crl);
892 OPENSSL_EXPORT X509_REVOKED *X509_REVOKED_dup(X509_REVOKED *rev);
893 OPENSSL_EXPORT X509_REQ *X509_REQ_dup(X509_REQ *req);
894 OPENSSL_EXPORT X509_ALGOR *X509_ALGOR_dup(X509_ALGOR *xn);
895 OPENSSL_EXPORT int X509_ALGOR_set0(X509_ALGOR *alg, const ASN1_OBJECT *aobj,
897 OPENSSL_EXPORT void X509_ALGOR_get0(const ASN1_OBJECT **paobj, int *pptype,
900 OPENSSL_EXPORT void X509_ALGOR_set_md(X509_ALGOR *alg, const EVP_MD *md);
901 OPENSSL_EXPORT int X509_ALGOR_cmp(const X509_ALGOR *a, const X509_ALGOR *b);
903 OPENSSL_EXPORT X509_NAME *X509_NAME_dup(X509_NAME *xn);
904 OPENSSL_EXPORT X509_NAME_ENTRY *X509_NAME_ENTRY_dup(X509_NAME_ENTRY *ne);
905 OPENSSL_EXPORT int X509_NAME_ENTRY_set(const X509_NAME_ENTRY *ne);
907 OPENSSL_EXPORT int X509_NAME_get0_der(X509_NAME *nm, const unsigned char **pder,
910 OPENSSL_EXPORT int X509_cmp_time(const ASN1_TIME *s, time_t *t);
911 OPENSSL_EXPORT int X509_cmp_current_time(const ASN1_TIME *s);
912 OPENSSL_EXPORT ASN1_TIME *X509_time_adj(ASN1_TIME *s, long adj, time_t *t);
913 OPENSSL_EXPORT ASN1_TIME *X509_time_adj_ex(ASN1_TIME *s, int offset_day,
915 OPENSSL_EXPORT ASN1_TIME *X509_gmtime_adj(ASN1_TIME *s, long adj);
917 OPENSSL_EXPORT const char *X509_get_default_cert_area(void);
918 OPENSSL_EXPORT const char *X509_get_default_cert_dir(void);
919 OPENSSL_EXPORT const char *X509_get_default_cert_file(void);
920 OPENSSL_EXPORT const char *X509_get_default_cert_dir_env(void);
921 OPENSSL_EXPORT const char *X509_get_default_cert_file_env(void);
922 OPENSSL_EXPORT const char *X509_get_default_private_dir(void);
924 OPENSSL_EXPORT X509_REQ *X509_to_X509_REQ(X509 *x, EVP_PKEY *pkey,
926 OPENSSL_EXPORT X509 *X509_REQ_to_X509(X509_REQ *r, int days, EVP_PKEY *pkey);
933 OPENSSL_EXPORT int X509_PUBKEY_set(X509_PUBKEY **x, EVP_PKEY *pkey);
934 OPENSSL_EXPORT EVP_PKEY *X509_PUBKEY_get(X509_PUBKEY *key);
941 OPENSSL_EXPORT X509_ATTRIBUTE *X509_ATTRIBUTE_create(int nid, int atrtype,
951 OPENSSL_EXPORT int X509_NAME_set(X509_NAME **xn, X509_NAME *name);
959 OPENSSL_EXPORT int X509_up_ref(X509 *x);
961 OPENSSL_EXPORT int X509_get_ex_new_index(long argl, void *argp,
965 OPENSSL_EXPORT int X509_set_ex_data(X509 *r, int idx, void *arg);
966 OPENSSL_EXPORT void *X509_get_ex_data(X509 *r, int idx);
967 OPENSSL_EXPORT int i2d_X509_AUX(X509 *a, unsigned char **pp);
968 OPENSSL_EXPORT X509 *d2i_X509_AUX(X509 **a, const unsigned char **pp,
983 OPENSSL_EXPORT int i2d_re_X509_tbs(X509 *x509, unsigned char **outp);
998 OPENSSL_EXPORT int i2d_X509_tbs(X509 *x509, unsigned char **outp);
1004 OPENSSL_EXPORT int X509_set1_signature_algo(X509 *x509, const X509_ALGOR *algo);
1014 OPENSSL_EXPORT int X509_set1_signature_value(X509 *x509, const uint8_t *sig,
1017 OPENSSL_EXPORT void X509_get0_signature(const ASN1_BIT_STRING **psig,
1019 OPENSSL_EXPORT int X509_get_signature_nid(const X509 *x);
1021 OPENSSL_EXPORT int X509_alias_set1(X509 *x, const unsigned char *name, int len);
1022 OPENSSL_EXPORT int X509_keyid_set1(X509 *x, const unsigned char *id, int len);
1023 OPENSSL_EXPORT unsigned char *X509_alias_get0(X509 *x, int *len);
1024 OPENSSL_EXPORT unsigned char *X509_keyid_get0(X509 *x, int *len);
1025 OPENSSL_EXPORT int (*X509_TRUST_set_default(int (*trust)(int, X509 *,
1028 OPENSSL_EXPORT int X509_TRUST_set(int *t, int trust);
1029 OPENSSL_EXPORT int X509_add1_trust_object(X509 *x, ASN1_OBJECT *obj);
1030 OPENSSL_EXPORT int X509_add1_reject_object(X509 *x, ASN1_OBJECT *obj);
1031 OPENSSL_EXPORT void X509_trust_clear(X509 *x);
1032 OPENSSL_EXPORT void X509_reject_clear(X509 *x);
1038 OPENSSL_EXPORT int X509_CRL_add0_revoked(X509_CRL *crl, X509_REVOKED *rev);
1039 OPENSSL_EXPORT int X509_CRL_get0_by_serial(X509_CRL *crl, X509_REVOKED **ret,
1041 OPENSSL_EXPORT int X509_CRL_get0_by_cert(X509_CRL *crl, X509_REVOKED **ret,
1044 OPENSSL_EXPORT X509_PKEY *X509_PKEY_new(void);
1045 OPENSSL_EXPORT void X509_PKEY_free(X509_PKEY *a);
1050 OPENSSL_EXPORT X509_INFO *X509_INFO_new(void);
1051 OPENSSL_EXPORT void X509_INFO_free(X509_INFO *a);
1052 OPENSSL_EXPORT char *X509_NAME_oneline(const X509_NAME *a, char *buf, int size);
1054 OPENSSL_EXPORT int ASN1_digest(i2d_of_void *i2d, const EVP_MD *type, char *data,
1057 OPENSSL_EXPORT int ASN1_item_digest(const ASN1_ITEM *it, const EVP_MD *type,
1061 OPENSSL_EXPORT int ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *algor1,
1065 OPENSSL_EXPORT int ASN1_item_sign(const ASN1_ITEM *it, X509_ALGOR *algor1,
1069 OPENSSL_EXPORT int ASN1_item_sign_ctx(const ASN1_ITEM *it, X509_ALGOR *algor1,
1074 OPENSSL_EXPORT int X509_set_version(X509 *x, long version);
1075 OPENSSL_EXPORT int X509_set_serialNumber(X509 *x, ASN1_INTEGER *serial);
1076 OPENSSL_EXPORT ASN1_INTEGER *X509_get_serialNumber(X509 *x);
1077 OPENSSL_EXPORT int X509_set_issuer_name(X509 *x, X509_NAME *name);
1078 OPENSSL_EXPORT X509_NAME *X509_get_issuer_name(const X509 *a);
1079 OPENSSL_EXPORT int X509_set_subject_name(X509 *x, X509_NAME *name);
1080 OPENSSL_EXPORT X509_NAME *X509_get_subject_name(const X509 *a);
1081 OPENSSL_EXPORT int X509_set_pubkey(X509 *x, EVP_PKEY *pkey);
1082 OPENSSL_EXPORT EVP_PKEY *X509_get_pubkey(X509 *x);
1083 OPENSSL_EXPORT ASN1_BIT_STRING *X509_get0_pubkey_bitstr(const X509 *x);
1084 OPENSSL_EXPORT const STACK_OF(X509_EXTENSION) *X509_get0_extensions(
1086 OPENSSL_EXPORT const X509_ALGOR *X509_get0_tbs_sigalg(const X509 *x);
1088 OPENSSL_EXPORT int X509_REQ_set_version(X509_REQ *x, long version);
1089 OPENSSL_EXPORT int X509_REQ_set_subject_name(X509_REQ *req, X509_NAME *name);
1090 OPENSSL_EXPORT void X509_REQ_get0_signature(const X509_REQ *req,
1093 OPENSSL_EXPORT int X509_REQ_get_signature_nid(const X509_REQ *req);
1094 OPENSSL_EXPORT int i2d_re_X509_REQ_tbs(X509_REQ *req, unsigned char **pp);
1095 OPENSSL_EXPORT int X509_REQ_set_pubkey(X509_REQ *x, EVP_PKEY *pkey);
1096 OPENSSL_EXPORT EVP_PKEY *X509_REQ_get_pubkey(X509_REQ *req);
1097 OPENSSL_EXPORT int X509_REQ_extension_nid(int nid);
1098 OPENSSL_EXPORT const int *X509_REQ_get_extension_nids(void);
1099 OPENSSL_EXPORT void X509_REQ_set_extension_nids(const int *nids);
1100 OPENSSL_EXPORT STACK_OF(X509_EXTENSION) *X509_REQ_get_extensions(X509_REQ *req);
1101 OPENSSL_EXPORT int X509_REQ_add_extensions_nid(X509_REQ *req,
1104 OPENSSL_EXPORT int X509_REQ_add_extensions(X509_REQ *req,
1106 OPENSSL_EXPORT int X509_REQ_get_attr_count(const X509_REQ *req);
1107 OPENSSL_EXPORT int X509_REQ_get_attr_by_NID(const X509_REQ *req, int nid,
1109 OPENSSL_EXPORT int X509_REQ_get_attr_by_OBJ(const X509_REQ *req,
1111 OPENSSL_EXPORT X509_ATTRIBUTE *X509_REQ_get_attr(const X509_REQ *req, int loc);
1112 OPENSSL_EXPORT X509_ATTRIBUTE *X509_REQ_delete_attr(X509_REQ *req, int loc);
1113 OPENSSL_EXPORT int X509_REQ_add1_attr(X509_REQ *req, X509_ATTRIBUTE *attr);
1114 OPENSSL_EXPORT int X509_REQ_add1_attr_by_OBJ(X509_REQ *req,
1118 OPENSSL_EXPORT int X509_REQ_add1_attr_by_NID(X509_REQ *req, int nid, int type,
1121 OPENSSL_EXPORT int X509_REQ_add1_attr_by_txt(X509_REQ *req,
1126 OPENSSL_EXPORT int X509_CRL_set_version(X509_CRL *x, long version);
1127 OPENSSL_EXPORT int X509_CRL_set_issuer_name(X509_CRL *x, X509_NAME *name);
1128 OPENSSL_EXPORT int X509_CRL_sort(X509_CRL *crl);
1129 OPENSSL_EXPORT int X509_CRL_up_ref(X509_CRL *crl);
1131 OPENSSL_EXPORT void X509_CRL_get0_signature(const X509_CRL *crl,
1134 OPENSSL_EXPORT int X509_CRL_get_signature_nid(const X509_CRL *crl);
1148 OPENSSL_EXPORT int i2d_re_X509_CRL_tbs(X509_CRL *crl, unsigned char **outp);
1163 OPENSSL_EXPORT int i2d_X509_CRL_tbs(X509_CRL *crl, unsigned char **outp);
1167 OPENSSL_EXPORT const ASN1_INTEGER *X509_REVOKED_get0_serialNumber(
1172 OPENSSL_EXPORT int X509_REVOKED_set_serialNumber(X509_REVOKED *revoked,
1177 OPENSSL_EXPORT const ASN1_TIME *X509_REVOKED_get0_revocationDate(
1182 OPENSSL_EXPORT int X509_REVOKED_set_revocationDate(X509_REVOKED *revoked,
1186 OPENSSL_EXPORT const STACK_OF(X509_EXTENSION) *X509_REVOKED_get0_extensions(
1189 OPENSSL_EXPORT X509_CRL *X509_CRL_diff(X509_CRL *base, X509_CRL *newer,
1193 OPENSSL_EXPORT int X509_REQ_check_private_key(X509_REQ *x509, EVP_PKEY *pkey);
1195 OPENSSL_EXPORT int X509_check_private_key(X509 *x509, const EVP_PKEY *pkey);
1196 OPENSSL_EXPORT int X509_chain_check_suiteb(int *perror_depth, X509 *x,
1199 OPENSSL_EXPORT int X509_CRL_check_suiteb(X509_CRL *crl, EVP_PKEY *pk,
1201 OPENSSL_EXPORT STACK_OF(X509) *X509_chain_up_ref(STACK_OF(X509) *chain);
1203 OPENSSL_EXPORT int X509_issuer_and_serial_cmp(const X509 *a, const X509 *b);
1204 OPENSSL_EXPORT unsigned long X509_issuer_and_serial_hash(X509 *a);
1206 OPENSSL_EXPORT int X509_issuer_name_cmp(const X509 *a, const X509 *b);
1207 OPENSSL_EXPORT unsigned long X509_issuer_name_hash(X509 *a);
1209 OPENSSL_EXPORT int X509_subject_name_cmp(const X509 *a, const X509 *b);
1210 OPENSSL_EXPORT unsigned long X509_subject_name_hash(X509 *x);
1212 OPENSSL_EXPORT unsigned long X509_issuer_name_hash_old(X509 *a);
1213 OPENSSL_EXPORT unsigned long X509_subject_name_hash_old(X509 *x);
1215 OPENSSL_EXPORT int X509_cmp(const X509 *a, const X509 *b);
1216 OPENSSL_EXPORT int X509_NAME_cmp(const X509_NAME *a, const X509_NAME *b);
1217 OPENSSL_EXPORT unsigned long X509_NAME_hash(X509_NAME *x);
1218 OPENSSL_EXPORT unsigned long X509_NAME_hash_old(X509_NAME *x);
1220 OPENSSL_EXPORT int X509_CRL_cmp(const X509_CRL *a, const X509_CRL *b);
1221 OPENSSL_EXPORT int X509_CRL_match(const X509_CRL *a, const X509_CRL *b);
1223 OPENSSL_EXPORT int X509_print_ex_fp(FILE *bp, X509 *x, unsigned long nmflag,
1225 OPENSSL_EXPORT int X509_print_fp(FILE *bp, X509 *x);
1226 OPENSSL_EXPORT int X509_CRL_print_fp(FILE *bp, X509_CRL *x);
1227 OPENSSL_EXPORT int X509_REQ_print_fp(FILE *bp, X509_REQ *req);
1228 OPENSSL_EXPORT int X509_NAME_print_ex_fp(FILE *fp, const X509_NAME *nm,
1232 OPENSSL_EXPORT int X509_NAME_print(BIO *bp, const X509_NAME *name, int obase);
1233 OPENSSL_EXPORT int X509_NAME_print_ex(BIO *out, const X509_NAME *nm, int indent,
1235 OPENSSL_EXPORT int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflag,
1237 OPENSSL_EXPORT int X509_print(BIO *bp, X509 *x);
1238 OPENSSL_EXPORT int X509_ocspid_print(BIO *bp, X509 *x);
1239 OPENSSL_EXPORT int X509_CERT_AUX_print(BIO *bp, X509_CERT_AUX *x, int indent);
1240 OPENSSL_EXPORT int X509_CRL_print(BIO *bp, X509_CRL *x);
1241 OPENSSL_EXPORT int X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflag,
1243 OPENSSL_EXPORT int X509_REQ_print(BIO *bp, X509_REQ *req);
1245 OPENSSL_EXPORT int X509_NAME_entry_count(const X509_NAME *name);
1246 OPENSSL_EXPORT int X509_NAME_get_text_by_NID(const X509_NAME *name, int nid,
1248 OPENSSL_EXPORT int X509_NAME_get_text_by_OBJ(const X509_NAME *name,
1254 OPENSSL_EXPORT int X509_NAME_get_index_by_NID(const X509_NAME *name, int nid,
1256 OPENSSL_EXPORT int X509_NAME_get_index_by_OBJ(const X509_NAME *name,
1259 OPENSSL_EXPORT X509_NAME_ENTRY *X509_NAME_get_entry(const X509_NAME *name,
1261 OPENSSL_EXPORT X509_NAME_ENTRY *X509_NAME_delete_entry(X509_NAME *name,
1263 OPENSSL_EXPORT int X509_NAME_add_entry(X509_NAME *name, X509_NAME_ENTRY *ne,
1265 OPENSSL_EXPORT int X509_NAME_add_entry_by_OBJ(X509_NAME *name, ASN1_OBJECT *obj,
1269 OPENSSL_EXPORT int X509_NAME_add_entry_by_NID(X509_NAME *name, int nid,
1273 OPENSSL_EXPORT X509_NAME_ENTRY *X509_NAME_ENTRY_create_by_txt(
1276 OPENSSL_EXPORT X509_NAME_ENTRY *X509_NAME_ENTRY_create_by_NID(
1279 OPENSSL_EXPORT int X509_NAME_add_entry_by_txt(X509_NAME *name,
1283 OPENSSL_EXPORT X509_NAME_ENTRY *X509_NAME_ENTRY_create_by_OBJ(
1286 OPENSSL_EXPORT int X509_NAME_ENTRY_set_object(X509_NAME_ENTRY *ne,
1288 OPENSSL_EXPORT int X509_NAME_ENTRY_set_data(X509_NAME_ENTRY *ne, int type,
1291 OPENSSL_EXPORT ASN1_OBJECT *X509_NAME_ENTRY_get_object(
1293 OPENSSL_EXPORT ASN1_STRING *X509_NAME_ENTRY_get_data(const X509_NAME_ENTRY *ne);
1295 OPENSSL_EXPORT int X509v3_get_ext_count(const STACK_OF(X509_EXTENSION) *x);
1296 OPENSSL_EXPORT int X509v3_get_ext_by_NID(const STACK_OF(X509_EXTENSION) *x,
1298 OPENSSL_EXPORT int X509v3_get_ext_by_OBJ(const STACK_OF(X509_EXTENSION) *x,
1300 OPENSSL_EXPORT int X509v3_get_ext_by_critical(const STACK_OF(X509_EXTENSION) *x,
1302 OPENSSL_EXPORT X509_EXTENSION *X509v3_get_ext(const STACK_OF(X509_EXTENSION) *x,
1304 OPENSSL_EXPORT X509_EXTENSION *X509v3_delete_ext(STACK_OF(X509_EXTENSION) *x,
1306 OPENSSL_EXPORT STACK_OF(X509_EXTENSION) *X509v3_add_ext(
1309 OPENSSL_EXPORT int X509_get_ext_count(const X509 *x);
1310 OPENSSL_EXPORT int X509_get_ext_by_NID(const X509 *x, int nid, int lastpos);
1311 OPENSSL_EXPORT int X509_get_ext_by_OBJ(const X509 *x, const ASN1_OBJECT *obj,
1313 OPENSSL_EXPORT int X509_get_ext_by_critical(const X509 *x, int crit,
1315 OPENSSL_EXPORT X509_EXTENSION *X509_get_ext(const X509 *x, int loc);
1316 OPENSSL_EXPORT X509_EXTENSION *X509_delete_ext(X509 *x, int loc);
1317 OPENSSL_EXPORT int X509_add_ext(X509 *x, X509_EXTENSION *ex, int loc);
1324 OPENSSL_EXPORT void *X509_get_ext_d2i(const X509 *x509, int nid,
1333 OPENSSL_EXPORT int X509_add1_ext_i2d(X509 *x, int nid, void *value, int crit,
1336 OPENSSL_EXPORT int X509_CRL_get_ext_count(const X509_CRL *x);
1337 OPENSSL_EXPORT int X509_CRL_get_ext_by_NID(const X509_CRL *x, int nid,
1339 OPENSSL_EXPORT int X509_CRL_get_ext_by_OBJ(const X509_CRL *x,
1341 OPENSSL_EXPORT int X509_CRL_get_ext_by_critical(const X509_CRL *x, int crit,
1343 OPENSSL_EXPORT X509_EXTENSION *X509_CRL_get_ext(const X509_CRL *x, int loc);
1344 OPENSSL_EXPORT X509_EXTENSION *X509_CRL_delete_ext(X509_CRL *x, int loc);
1345 OPENSSL_EXPORT int X509_CRL_add_ext(X509_CRL *x, X509_EXTENSION *ex, int loc);
1352 OPENSSL_EXPORT void *X509_CRL_get_ext_d2i(const X509_CRL *crl, int nid,
1361 OPENSSL_EXPORT int X509_CRL_add1_ext_i2d(X509_CRL *x, int nid, void *value,
1364 OPENSSL_EXPORT int X509_REVOKED_get_ext_count(const X509_REVOKED *x);
1365 OPENSSL_EXPORT int X509_REVOKED_get_ext_by_NID(const X509_REVOKED *x, int nid,
1367 OPENSSL_EXPORT int X509_REVOKED_get_ext_by_OBJ(const X509_REVOKED *x,
1370 OPENSSL_EXPORT int X509_REVOKED_get_ext_by_critical(const X509_REVOKED *x,
1372 OPENSSL_EXPORT X509_EXTENSION *X509_REVOKED_get_ext(const X509_REVOKED *x,
1374 OPENSSL_EXPORT X509_EXTENSION *X509_REVOKED_delete_ext(X509_REVOKED *x,
1376 OPENSSL_EXPORT int X509_REVOKED_add_ext(X509_REVOKED *x, X509_EXTENSION *ex,
1384 OPENSSL_EXPORT void *X509_REVOKED_get_ext_d2i(const X509_REVOKED *revoked,
1394 OPENSSL_EXPORT int X509_REVOKED_add1_ext_i2d(X509_REVOKED *x, int nid,
1398 OPENSSL_EXPORT X509_EXTENSION *X509_EXTENSION_create_by_NID(
1400 OPENSSL_EXPORT X509_EXTENSION *X509_EXTENSION_create_by_OBJ(
1403 OPENSSL_EXPORT int X509_EXTENSION_set_object(X509_EXTENSION *ex,
1405 OPENSSL_EXPORT int X509_EXTENSION_set_critical(X509_EXTENSION *ex, int crit);
1406 OPENSSL_EXPORT int X509_EXTENSION_set_data(X509_EXTENSION *ex,
1408 OPENSSL_EXPORT ASN1_OBJECT *X509_EXTENSION_get_object(X509_EXTENSION *ex);
1409 OPENSSL_EXPORT ASN1_OCTET_STRING *X509_EXTENSION_get_data(X509_EXTENSION *ne);
1410 OPENSSL_EXPORT int X509_EXTENSION_get_critical(X509_EXTENSION *ex);
1412 OPENSSL_EXPORT int X509at_get_attr_count(const STACK_OF(X509_ATTRIBUTE) *x);
1413 OPENSSL_EXPORT int X509at_get_attr_by_NID(const STACK_OF(X509_ATTRIBUTE) *x,
1415 OPENSSL_EXPORT int X509at_get_attr_by_OBJ(const STACK_OF(X509_ATTRIBUTE) *sk,
1417 OPENSSL_EXPORT X509_ATTRIBUTE *X509at_get_attr(
1419 OPENSSL_EXPORT X509_ATTRIBUTE *X509at_delete_attr(STACK_OF(X509_ATTRIBUTE) *x,
1421 OPENSSL_EXPORT STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr(
1423 OPENSSL_EXPORT STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_OBJ(
1426 OPENSSL_EXPORT STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_NID(
1429 OPENSSL_EXPORT STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_txt(
1432 OPENSSL_EXPORT void *X509at_get0_data_by_OBJ(STACK_OF(X509_ATTRIBUTE) *x,
1435 OPENSSL_EXPORT X509_ATTRIBUTE *X509_ATTRIBUTE_create_by_NID(
1437 OPENSSL_EXPORT X509_ATTRIBUTE *X509_ATTRIBUTE_create_by_OBJ(
1440 OPENSSL_EXPORT X509_ATTRIBUTE *X509_ATTRIBUTE_create_by_txt(
1443 OPENSSL_EXPORT int X509_ATTRIBUTE_set1_object(X509_ATTRIBUTE *attr,
1445 OPENSSL_EXPORT int X509_ATTRIBUTE_set1_data(X509_ATTRIBUTE *attr, int attrtype,
1447 OPENSSL_EXPORT void *X509_ATTRIBUTE_get0_data(X509_ATTRIBUTE *attr, int idx,
1449 OPENSSL_EXPORT int X509_ATTRIBUTE_count(X509_ATTRIBUTE *attr);
1450 OPENSSL_EXPORT ASN1_OBJECT *X509_ATTRIBUTE_get0_object(X509_ATTRIBUTE *attr);
1451 OPENSSL_EXPORT ASN1_TYPE *X509_ATTRIBUTE_get0_type(X509_ATTRIBUTE *attr,
1454 OPENSSL_EXPORT int X509_verify_cert(X509_STORE_CTX *ctx);
1457 OPENSSL_EXPORT X509 *X509_find_by_issuer_and_serial(STACK_OF(X509) *sk,
1460 OPENSSL_EXPORT X509 *X509_find_by_subject(STACK_OF(X509) *sk, X509_NAME *name);
1466 OPENSSL_EXPORT EVP_PKEY *EVP_PKCS82PKEY(PKCS8_PRIV_KEY_INFO *p8);
1467 OPENSSL_EXPORT PKCS8_PRIV_KEY_INFO *EVP_PKEY2PKCS8(EVP_PKEY *pkey);
1469 OPENSSL_EXPORT int PKCS8_pkey_set0(PKCS8_PRIV_KEY_INFO *priv, ASN1_OBJECT *aobj,
1472 OPENSSL_EXPORT int PKCS8_pkey_get0(ASN1_OBJECT **ppkalg,
1476 OPENSSL_EXPORT int X509_PUBKEY_set0_param(X509_PUBKEY *pub,
1480 OPENSSL_EXPORT int X509_PUBKEY_get0_param(ASN1_OBJECT **ppkalg,
1484 OPENSSL_EXPORT int X509_check_trust(X509 *x, int id, int flags);
1485 OPENSSL_EXPORT int X509_TRUST_get_count(void);
1486 OPENSSL_EXPORT X509_TRUST *X509_TRUST_get0(int idx);
1487 OPENSSL_EXPORT int X509_TRUST_get_by_id(int id);
1488 OPENSSL_EXPORT int X509_TRUST_add(int id, int flags,
1491 OPENSSL_EXPORT void X509_TRUST_cleanup(void);
1492 OPENSSL_EXPORT int X509_TRUST_get_flags(const X509_TRUST *xp);
1493 OPENSSL_EXPORT char *X509_TRUST_get0_name(const X509_TRUST *xp);
1494 OPENSSL_EXPORT int X509_TRUST_get_trust(const X509_TRUST *xp);