Lines Matching refs:xs

42 int X509_STORE_lock(X509_STORE *xs)  in X509_STORE_lock()  argument
44 return CRYPTO_THREAD_write_lock(xs->lock); in X509_STORE_lock()
47 static int x509_store_read_lock(X509_STORE *xs) in x509_store_read_lock() argument
49 return CRYPTO_THREAD_read_lock(xs->lock); in x509_store_read_lock()
52 int X509_STORE_unlock(X509_STORE *xs) in X509_STORE_unlock() argument
54 return CRYPTO_THREAD_unlock(xs->lock); in X509_STORE_unlock()
226 void X509_STORE_free(X509_STORE *xs) in X509_STORE_free() argument
232 if (xs == NULL) in X509_STORE_free()
234 CRYPTO_DOWN_REF(&xs->references, &i); in X509_STORE_free()
235 REF_PRINT_COUNT("X509_STORE", xs); in X509_STORE_free()
240 sk = xs->get_cert_methods; in X509_STORE_free()
247 sk_X509_OBJECT_pop_free(xs->objs, X509_OBJECT_free); in X509_STORE_free()
249 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_X509_STORE, xs, &xs->ex_data); in X509_STORE_free()
250 X509_VERIFY_PARAM_free(xs->param); in X509_STORE_free()
251 CRYPTO_THREAD_lock_free(xs->lock); in X509_STORE_free()
252 CRYPTO_FREE_REF(&xs->references); in X509_STORE_free()
253 OPENSSL_free(xs); in X509_STORE_free()
256 int X509_STORE_up_ref(X509_STORE *xs) in X509_STORE_up_ref() argument
260 if (CRYPTO_UP_REF(&xs->references, &i) <= 0) in X509_STORE_up_ref()
263 REF_PRINT_COUNT("X509_STORE", xs); in X509_STORE_up_ref()
268 X509_LOOKUP *X509_STORE_add_lookup(X509_STORE *xs, X509_LOOKUP_METHOD *m) in X509_STORE_add_lookup() argument
274 sk = xs->get_cert_methods; in X509_STORE_add_lookup()
288 lu->store_ctx = xs; in X509_STORE_add_lookup()
289 if (sk_X509_LOOKUP_push(xs->get_cert_methods, lu)) in X509_STORE_add_lookup()
432 int X509_STORE_add_cert(X509_STORE *xs, X509 *x) in X509_STORE_add_cert() argument
434 if (!x509_store_add(xs, x, 0)) { in X509_STORE_add_cert()
441 int X509_STORE_add_crl(X509_STORE *xs, X509_CRL *x) in X509_STORE_add_crl() argument
443 if (!x509_store_add(xs, x, 1)) { in X509_STORE_add_crl()
583 STACK_OF(X509_OBJECT) *X509_STORE_get0_objects(const X509_STORE *xs) in STACK_OF()
585 return xs->objs; in STACK_OF()
781 int X509_STORE_set_flags(X509_STORE *xs, unsigned long flags) in X509_STORE_set_flags() argument
783 return X509_VERIFY_PARAM_set_flags(xs->param, flags); in X509_STORE_set_flags()
786 int X509_STORE_set_depth(X509_STORE *xs, int depth) in X509_STORE_set_depth() argument
788 X509_VERIFY_PARAM_set_depth(xs->param, depth); in X509_STORE_set_depth()
792 int X509_STORE_set_purpose(X509_STORE *xs, int purpose) in X509_STORE_set_purpose() argument
794 return X509_VERIFY_PARAM_set_purpose(xs->param, purpose); in X509_STORE_set_purpose()
797 int X509_STORE_set_trust(X509_STORE *xs, int trust) in X509_STORE_set_trust() argument
799 return X509_VERIFY_PARAM_set_trust(xs->param, trust); in X509_STORE_set_trust()
802 int X509_STORE_set1_param(X509_STORE *xs, const X509_VERIFY_PARAM *param) in X509_STORE_set1_param() argument
804 return X509_VERIFY_PARAM_set1(xs->param, param); in X509_STORE_set1_param()
807 X509_VERIFY_PARAM *X509_STORE_get0_param(const X509_STORE *xs) in X509_STORE_get0_param() argument
809 return xs->param; in X509_STORE_get0_param()
812 void X509_STORE_set_verify(X509_STORE *xs, X509_STORE_CTX_verify_fn verify) in X509_STORE_set_verify() argument
814 xs->verify = verify; in X509_STORE_set_verify()
817 X509_STORE_CTX_verify_fn X509_STORE_get_verify(const X509_STORE *xs) in X509_STORE_get_verify() argument
819 return xs->verify; in X509_STORE_get_verify()
822 void X509_STORE_set_verify_cb(X509_STORE *xs, in X509_STORE_set_verify_cb() argument
825 xs->verify_cb = verify_cb; in X509_STORE_set_verify_cb()
828 X509_STORE_CTX_verify_cb X509_STORE_get_verify_cb(const X509_STORE *xs) in X509_STORE_get_verify_cb() argument
830 return xs->verify_cb; in X509_STORE_get_verify_cb()
833 void X509_STORE_set_get_issuer(X509_STORE *xs, in X509_STORE_set_get_issuer() argument
836 xs->get_issuer = get_issuer; in X509_STORE_set_get_issuer()
839 X509_STORE_CTX_get_issuer_fn X509_STORE_get_get_issuer(const X509_STORE *xs) in X509_STORE_get_get_issuer() argument
841 return xs->get_issuer; in X509_STORE_get_get_issuer()
844 void X509_STORE_set_check_issued(X509_STORE *xs, in X509_STORE_set_check_issued() argument
847 xs->check_issued = check_issued; in X509_STORE_set_check_issued()
850 X509_STORE_CTX_check_issued_fn X509_STORE_get_check_issued(const X509_STORE *xs) in X509_STORE_get_check_issued() argument
852 return xs->check_issued; in X509_STORE_get_check_issued()
855 void X509_STORE_set_check_revocation(X509_STORE *xs, in X509_STORE_set_check_revocation() argument
858 xs->check_revocation = cb; in X509_STORE_set_check_revocation()
861 X509_STORE_CTX_check_revocation_fn X509_STORE_get_check_revocation(const X509_STORE *xs) in X509_STORE_get_check_revocation() argument
863 return xs->check_revocation; in X509_STORE_get_check_revocation()
866 void X509_STORE_set_get_crl(X509_STORE *xs, in X509_STORE_set_get_crl() argument
869 xs->get_crl = get_crl; in X509_STORE_set_get_crl()
872 X509_STORE_CTX_get_crl_fn X509_STORE_get_get_crl(const X509_STORE *xs) in X509_STORE_get_get_crl() argument
874 return xs->get_crl; in X509_STORE_get_get_crl()
877 void X509_STORE_set_check_crl(X509_STORE *xs, in X509_STORE_set_check_crl() argument
880 xs->check_crl = check_crl; in X509_STORE_set_check_crl()
883 X509_STORE_CTX_check_crl_fn X509_STORE_get_check_crl(const X509_STORE *xs) in X509_STORE_get_check_crl() argument
885 return xs->check_crl; in X509_STORE_get_check_crl()
888 void X509_STORE_set_cert_crl(X509_STORE *xs, in X509_STORE_set_cert_crl() argument
891 xs->cert_crl = cert_crl; in X509_STORE_set_cert_crl()
894 X509_STORE_CTX_cert_crl_fn X509_STORE_get_cert_crl(const X509_STORE *xs) in X509_STORE_get_cert_crl() argument
896 return xs->cert_crl; in X509_STORE_get_cert_crl()
899 void X509_STORE_set_check_policy(X509_STORE *xs, in X509_STORE_set_check_policy() argument
902 xs->check_policy = check_policy; in X509_STORE_set_check_policy()
905 X509_STORE_CTX_check_policy_fn X509_STORE_get_check_policy(const X509_STORE *xs) in X509_STORE_get_check_policy() argument
907 return xs->check_policy; in X509_STORE_get_check_policy()
910 void X509_STORE_set_lookup_certs(X509_STORE *xs, in X509_STORE_set_lookup_certs() argument
913 xs->lookup_certs = lookup_certs; in X509_STORE_set_lookup_certs()
916 X509_STORE_CTX_lookup_certs_fn X509_STORE_get_lookup_certs(const X509_STORE *xs) in X509_STORE_get_lookup_certs() argument
918 return xs->lookup_certs; in X509_STORE_get_lookup_certs()
921 void X509_STORE_set_lookup_crls(X509_STORE *xs, in X509_STORE_set_lookup_crls() argument
924 xs->lookup_crls = lookup_crls; in X509_STORE_set_lookup_crls()
927 X509_STORE_CTX_lookup_crls_fn X509_STORE_get_lookup_crls(const X509_STORE *xs) in X509_STORE_get_lookup_crls() argument
929 return xs->lookup_crls; in X509_STORE_get_lookup_crls()
932 void X509_STORE_set_cleanup(X509_STORE *xs, in X509_STORE_set_cleanup() argument
935 xs->cleanup = cleanup; in X509_STORE_set_cleanup()
938 X509_STORE_CTX_cleanup_fn X509_STORE_get_cleanup(const X509_STORE *xs) in X509_STORE_get_cleanup() argument
940 return xs->cleanup; in X509_STORE_get_cleanup()
943 int X509_STORE_set_ex_data(X509_STORE *xs, int idx, void *data) in X509_STORE_set_ex_data() argument
945 return CRYPTO_set_ex_data(&xs->ex_data, idx, data); in X509_STORE_set_ex_data()
948 void *X509_STORE_get_ex_data(const X509_STORE *xs, int idx) in X509_STORE_get_ex_data() argument
950 return CRYPTO_get_ex_data(&xs->ex_data, idx); in X509_STORE_get_ex_data()