Lines Matching refs:NULL

147 	return (dst_t_func[alg] != NULL);
161 * NULL if error
168 DST_KEY *new_key = NULL;
172 if (new_key == NULL)
173 return (NULL);
177 if (new_key->dk_key_name == NULL) {
179 return (NULL);
184 new_key->dk_KEY_struct = NULL;
205 if (key1 == NULL || key2 == NULL)
254 (in_key->dk_KEY_struct == NULL || signature == NULL))
296 (in_key->dk_KEY_struct == NULL || signature == NULL))
299 if (in_key->dk_func == NULL || in_key->dk_func->verify == NULL)
322 * NULL If there is no key found in the current directory or
324 * !NULL Success - KEY structure returned.
332 DST_KEY *dg_key = NULL, *pubkey = NULL;
336 return (NULL);
339 return (NULL);
340 if (in_keyname == NULL) {
342 return (NULL);
345 return (NULL);
350 if ((pubkey = dst_s_read_public_key(keyname, in_id, in_alg)) == NULL)
351 return (NULL);
374 if (key == NULL)
417 if (key == NULL)
419 if (key->dk_KEY_struct == NULL)
421 if (key->dk_func == NULL || key->dk_func->to_file_fmt == NULL) {
436 if ((fp = dst_s_fopen(file, "w", 0600)) != NULL) {
464 * NULL If the key does not exist or no name is supplied.
465 * NON-NULL Initialized key structure if the key exists.
478 if (in_name == NULL) {
480 return (NULL);
486 return (NULL);
495 if ((fp = dst_s_fopen(name, "r", 0)) == NULL) {
497 return (NULL);
530 return NULL;
544 return (NULL);
555 return NULL;
560 return (NULL);
572 return (NULL);
601 if (key == NULL) {
618 if ((fp = dst_s_fopen(filename, "w+", mode)) == NULL) {
644 * NULL Failure
645 * NON-NULL Success. Pointer to key structure.
656 if (rdata == NULL || len <= DST_KEY_ALG) /*%< no data */
657 return (NULL);
662 return (NULL);
665 if (in_name == NULL)
666 return (NULL);
668 if ((key_st = dst_s_get_key_struct(in_name, alg, 0, 0, 0)) == NULL)
669 return (NULL);
693 return (NULL);
715 if (key == NULL)
736 if (key->dk_KEY_struct == NULL)
759 * NULL an error occurred
760 * NON-NULL the DST key
771 DST_KEY *dkey = NULL;
777 return (NULL);
782 if (dkey == NULL || dkey->dk_func == NULL ||
783 dkey->dk_func->from_dns_key == NULL)
801 if (key == NULL)
803 if (key->dk_func != NULL && key->dk_func->to_dns_key != NULL) {
839 if (name == NULL || pk_key == NULL) {
851 if ((fp = dst_s_fopen(filename, "r", 0)) == NULL) {
854 getcwd(NULL, PATH_MAX - 1)));
902 if (pk_key->dk_func == NULL || pk_key->dk_func->from_file_fmt == NULL)
956 *\li NULL Failure
957 *\li non-NULL the generated key pair
964 DST_KEY *new_key = NULL;
968 if (name == NULL)
969 return (NULL);
973 return (NULL);
977 if (new_key == NULL)
978 return (NULL);
981 if (new_key->dk_func == NULL || new_key->dk_func->generate == NULL) {
1012 if (f_key == NULL)
1022 f_key->dk_KEY_struct = NULL;
1027 return (NULL);