Changeset View
Changeset View
Standalone View
Standalone View
dirmngr/validate.c
Context not available. | |||||
} | } | ||||
} | } | ||||
if (err && gpg_err_code (err) != GPG_ERR_EOF) | if (err && gpg_err_code (err) != GPG_ERR_EOF) | ||||
rc = err; /* Such an error takes precendence. */ | rc = err; /* Such an error takes precedence. */ | ||||
return rc; | return rc; | ||||
} | } | ||||
Context not available. | |||||
{ | { | ||||
if (gpg_err_code (err) == GPG_ERR_NO_DATA) | if (gpg_err_code (err) == GPG_ERR_NO_DATA) | ||||
return 1; /* Yes. Without a authorityKeyIdentifier this needs | return 1; /* Yes. Without a authorityKeyIdentifier this needs | ||||
to be the Root certifcate (our trust anchor). */ | to be the Root certificate (our trust anchor). */ | ||||
log_error ("error getting authorityKeyIdentifier: %s\n", | log_error ("error getting authorityKeyIdentifier: %s\n", | ||||
gpg_strerror (err)); | gpg_strerror (err)); | ||||
return 0; /* Well, it is broken anyway. Return No. */ | return 0; /* Well, it is broken anyway. Return No. */ | ||||
Context not available. | |||||
log_info ("root certificate is good and trusted\n"); | log_info ("root certificate is good and trusted\n"); | ||||
} | } | ||||
break; /* Okay: a self-signed certicate is an end-point. */ | break; /* Okay: a self-signed certificate is an end-point. */ | ||||
} | } | ||||
/* To avoid loops, we use an arbitrary limit on the length of | /* To avoid loops, we use an arbitrary limit on the length of | ||||
Context not available. |