Lines Matching refs:sk
68 static int asn1_set_seq_out(STACK_OF(ASN1_VALUE) *sk, unsigned char **out,
319 STACK_OF(ASN1_VALUE) *sk = (STACK_OF(ASN1_VALUE) *)*pval; in asn1_template_ex_i2d()
354 for (j = 0; j < sk_ASN1_VALUE_num(sk); j++) in asn1_template_ex_i2d()
356 skitem = sk_ASN1_VALUE_value(sk, j); in asn1_template_ex_i2d()
377 asn1_set_seq_out(sk, out, skcontlen, ASN1_ITEM_ptr(tt->item), in asn1_template_ex_i2d()
438 static int asn1_set_seq_out(STACK_OF(ASN1_VALUE) *sk, unsigned char **out, in asn1_set_seq_out() argument
449 if (sk_ASN1_VALUE_num(sk) < 2) in asn1_set_seq_out()
453 derlst = OPENSSL_malloc(sk_ASN1_VALUE_num(sk) in asn1_set_seq_out()
468 for (i = 0; i < sk_ASN1_VALUE_num(sk); i++) in asn1_set_seq_out()
470 skitem = sk_ASN1_VALUE_value(sk, i); in asn1_set_seq_out()
478 for (i = 0, tder = derlst; i < sk_ASN1_VALUE_num(sk); i++, tder++) in asn1_set_seq_out()
480 skitem = sk_ASN1_VALUE_value(sk, i); in asn1_set_seq_out()
487 qsort(derlst, sk_ASN1_VALUE_num(sk), sizeof(*derlst), der_cmp); in asn1_set_seq_out()
490 for (i = 0, tder = derlst; i < sk_ASN1_VALUE_num(sk); i++, tder++) in asn1_set_seq_out()
499 for (i = 0, tder = derlst; i < sk_ASN1_VALUE_num(sk); in asn1_set_seq_out()
501 (void)sk_ASN1_VALUE_set(sk, i, tder->field); in asn1_set_seq_out()