Home | History | Annotate | Download | only in x509

Lines Matching refs:x509

1 /* crypto/x509/x509_cmp.c */
67 #include <openssl/x509.h>
73 int X509_issuer_and_serial_cmp(const X509 *a, const X509 *b)
86 unsigned long X509_issuer_and_serial_hash(X509 *a)
114 int X509_issuer_name_cmp(const X509 *a, const X509 *b)
119 int X509_subject_name_cmp(const X509 *a, const X509 *b)
134 X509_NAME *X509_get_issuer_name(X509 *a)
139 unsigned long X509_issuer_name_hash(X509 *x)
144 unsigned long X509_issuer_name_hash_old(X509 *x)
149 X509_NAME *X509_get_subject_name(X509 *a)
154 ASN1_INTEGER *X509_get_serialNumber(X509 *a)
159 unsigned long X509_subject_name_hash(X509 *x)
164 unsigned long X509_subject_name_hash_old(X509 *x)
172 * arguments (eg. for use in STACKs), the way X509 handling is - these
177 int X509_cmp(const X509 *a, const X509 *b)
181 X509_check_purpose((X509 *)a, -1, 0);
182 X509_check_purpose((X509 *)b, -1, 0);
268 /* Search a stack of X509 for a match */
269 X509 *X509_find_by_issuer_and_serial(STACK_OF(X509) *sk, X509_NAME *name,
274 X509 x, *x509 = NULL;
284 x509 = sk_X509_value(sk, i);
285 if (X509_issuer_and_serial_cmp(x509, &x) == 0)
286 return (x509);
291 X509 *X509_find_by_subject(STACK_OF(X509) *sk, X509_NAME *name)
293 X509 *x509;
297 x509 = sk_X509_value(sk, i);
298 if (X509_NAME_cmp(X509_get_subject_name(x509), name) == 0)
299 return (x509);
304 EVP_PKEY *X509_get_pubkey(X509 *x)
311 ASN1_BIT_STRING *X509_get0_pubkey_bitstr(const X509 *x)
318 int X509_check_private_key(X509 *x, EVP_PKEY *k)
334 OPENSSL_PUT_ERROR(X509, X509_R_KEY_VALUES_MISMATCH);
337 OPENSSL_PUT_ERROR(X509, X509_R_KEY_TYPE_MISMATCH);
340 OPENSSL_PUT_ERROR(X509, X509_R_UNKNOWN_KEY_TYPE);
386 int X509_chain_check_suiteb(int *perror_depth, X509 *x, STACK_OF(X509) *chain,
466 * each X509 structure.
468 STACK_OF(X509) *X509_chain_up_ref(STACK_OF(X509) *chain)
470 STACK_OF(X509) *ret;