Lines Matching refs:NULL

87  *              empty) or NULL if there is none.  It will be used to encrypt
95 * Note that any of these may be NULL.
98 * NULL - An error occurred.
99 * != NULL - Address of PKCS12 structure. The user is responsible for
108 STACK_OF(PKCS12_SAFEBAG) *bags = NULL;
109 STACK_OF(PKCS7) *safes = NULL;
110 PKCS12_SAFEBAG *bag = NULL;
111 PKCS8_PRIV_KEY_INFO *p8 = NULL;
112 EVP_PKEY *pkey = NULL;
113 PKCS12 *ret_p12 = NULL;
114 PKCS12 *p12 = NULL;
115 PKCS7 *authsafe = NULL;
116 X509 *cert = NULL;
117 uchar_t *str = NULL;
123 if ((safes = sk_PKCS7_new_null()) == NULL) {
125 return (NULL);
128 if ((bags = sk_PKCS12_SAFEBAG_new_null()) == NULL) {
133 if (certs != NULL && sk_X509_num(certs) > 0) {
139 if ((bag = M_PKCS12_x5092certbag(cert)) == NULL) {
143 if (cert->aux != NULL && cert->aux->alias != NULL &&
146 if (str == NULL) {
160 if (cert->aux != NULL && cert->aux->keyid != NULL &&
165 if (str != NULL &&
178 bag = NULL;
182 if (cacerts != NULL && sk_X509_num(cacerts) > 0) {
187 if ((bag = M_PKCS12_x5092certbag(cert)) == NULL) {
192 if (cert->aux != NULL && cert->aux->alias != NULL &&
195 if (str == NULL) {
209 if (cert->aux != NULL && cert->aux->keyid != NULL &&
214 if (str != NULL &&
227 bag = NULL;
231 if (certs != NULL || cacerts != NULL && certs_there) {
234 NULL, 0, PKCS12_DEFAULT_ITER, bags);
235 if (authsafe == NULL) {
240 bags = NULL;
246 authsafe = NULL;
249 if (pkeys != NULL && sk_EVP_PKEY_num(pkeys) > 0) {
251 if (bags == NULL &&
252 (bags = sk_PKCS12_SAFEBAG_new_null()) == NULL) {
262 if ((p8 = EVP_PKEY2PKCS8(pkey)) == NULL) {
267 bag = PKCS12_MAKE_SHKEYBAG(nid_key, pass, -1, NULL, 0,
269 if (bag == NULL) {
275 p8 = NULL;
279 if (str != NULL) {
287 str = NULL;
291 if (str != NULL) {
298 str = NULL;
306 bag = NULL;
312 if (authsafe == NULL) {
318 bags = NULL;
324 authsafe = NULL;
333 if ((p12 = PKCS12_init(NID_pkcs7_data)) == NULL) {
346 if (PKCS12_set_mac(p12, pass, -1, NULL, 0, 2048, NULL) == 0) {
352 p12 = NULL;
358 if (str != NULL)
361 if (p8 != NULL)
364 if (bag != NULL)
366 if (bags != NULL)
368 if (authsafe != NULL)
370 if (safes != NULL)
372 if (p12 != NULL)