Lines Matching refs:sk
193 int X509_add_cert(STACK_OF(X509) *sk, X509 *cert, int flags) in X509_add_cert() argument
195 if (sk == NULL) { in X509_add_cert()
206 for (i = 0; i < sk_X509_num(sk); i++) { in X509_add_cert()
207 if (X509_cmp(sk_X509_value(sk, i), cert) == 0) in X509_add_cert()
217 if (!sk_X509_insert(sk, cert, in X509_add_cert()
227 int X509_add_certs(STACK_OF(X509) *sk, STACK_OF(X509) *certs, int flags) in X509_add_certs() argument
230 if (sk == NULL) { in X509_add_certs()
234 return ossl_x509_add_certs_new(&sk, certs, flags); in X509_add_certs()
348 X509 *X509_find_by_issuer_and_serial(STACK_OF(X509) *sk, const X509_NAME *name, in X509_find_by_issuer_and_serial() argument
354 if (!sk) in X509_find_by_issuer_and_serial()
360 for (i = 0; i < sk_X509_num(sk); i++) { in X509_find_by_issuer_and_serial()
361 x509 = sk_X509_value(sk, i); in X509_find_by_issuer_and_serial()
368 X509 *X509_find_by_subject(STACK_OF(X509) *sk, const X509_NAME *name) in X509_find_by_subject() argument
373 for (i = 0; i < sk_X509_num(sk); i++) { in X509_find_by_subject()
374 x509 = sk_X509_value(sk, i); in X509_find_by_subject()