Lines Matching refs:bag
110 PKCS12_SAFEBAG *bag = NULL; in sunw_PKCS12_create() local
139 if ((bag = M_PKCS12_x5092certbag(cert)) == NULL) { in sunw_PKCS12_create()
152 if (PKCS12_add_friendlyname_asc(bag, in sunw_PKCS12_create()
166 PKCS12_add_localkeyid(bag, str, len) == 0) { in sunw_PKCS12_create()
172 if (sk_PKCS12_SAFEBAG_push(bags, bag) == 0) { in sunw_PKCS12_create()
178 bag = NULL; in sunw_PKCS12_create()
187 if ((bag = M_PKCS12_x5092certbag(cert)) == NULL) { in sunw_PKCS12_create()
202 bag, (char const *) str, in sunw_PKCS12_create()
215 PKCS12_add_localkeyid(bag, str, len) == 0) { in sunw_PKCS12_create()
221 if (sk_PKCS12_SAFEBAG_push(bags, bag) == 0) { in sunw_PKCS12_create()
227 bag = NULL; in sunw_PKCS12_create()
267 bag = PKCS12_MAKE_SHKEYBAG(nid_key, pass, -1, NULL, 0, in sunw_PKCS12_create()
269 if (bag == NULL) { in sunw_PKCS12_create()
280 if (PKCS12_add_friendlyname_asc(bag, in sunw_PKCS12_create()
292 if (PKCS12_add_localkeyid(bag, str, len) == 0) { in sunw_PKCS12_create()
300 if (sk_PKCS12_SAFEBAG_push(bags, bag) == 0) { in sunw_PKCS12_create()
306 bag = NULL; in sunw_PKCS12_create()
364 if (bag != NULL) in sunw_PKCS12_create()
365 PKCS12_SAFEBAG_free(bag); in sunw_PKCS12_create()