mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Added new directory common to enable sharing of some code and error
numbers between gpg, gpgsm and gpg-agent. Move some files and code to there.
This commit is contained in:
parent
8e58435312
commit
bab7fa0b29
21 changed files with 1395 additions and 235 deletions
|
@ -46,7 +46,7 @@ gpgsm_validate_path (KsbaCert cert)
|
|||
if (!kh)
|
||||
{
|
||||
log_error (_("failed to allocated keyDB handle\n"));
|
||||
rc = GPGSM_General_Error;
|
||||
rc = GNUPG_General_Error;
|
||||
goto leave;
|
||||
}
|
||||
|
||||
|
@ -65,7 +65,7 @@ gpgsm_validate_path (KsbaCert cert)
|
|||
{
|
||||
if (DBG_X509)
|
||||
log_debug ("ERROR: issuer missing\n");
|
||||
rc = GPGSM_Bad_Certificate;
|
||||
rc = GNUPG_Bad_Certificate;
|
||||
goto leave;
|
||||
}
|
||||
|
||||
|
@ -74,7 +74,7 @@ gpgsm_validate_path (KsbaCert cert)
|
|||
if (gpgsm_check_cert_sig (subject_cert, subject_cert) )
|
||||
{
|
||||
log_debug ("selfsigned certificate has a BAD signatures\n");
|
||||
rc = depth? GPGSM_Bad_Certificate_Path : GPGSM_Bad_Certificate;
|
||||
rc = depth? GNUPG_Bad_Certificate_Path : GNUPG_Bad_Certificate;
|
||||
goto leave;
|
||||
}
|
||||
log_debug ("selfsigned certificate is good\n");
|
||||
|
@ -90,7 +90,7 @@ gpgsm_validate_path (KsbaCert cert)
|
|||
if (rc)
|
||||
{
|
||||
log_debug ("failed to find issuer's certificate: rc=%d\n", rc);
|
||||
rc = GPGSM_Missing_Certificate;
|
||||
rc = GNUPG_Missing_Certificate;
|
||||
goto leave;
|
||||
}
|
||||
|
||||
|
@ -99,7 +99,7 @@ gpgsm_validate_path (KsbaCert cert)
|
|||
if (rc)
|
||||
{
|
||||
log_debug ("failed to get cert: rc=%d\n", rc);
|
||||
rc = GPGSM_General_Error;
|
||||
rc = GNUPG_General_Error;
|
||||
goto leave;
|
||||
}
|
||||
|
||||
|
@ -109,7 +109,7 @@ gpgsm_validate_path (KsbaCert cert)
|
|||
if (gpgsm_check_cert_sig (issuer_cert, subject_cert) )
|
||||
{
|
||||
log_debug ("certificate has a BAD signatures\n");
|
||||
rc = GPGSM_Bad_Certificate_Path;
|
||||
rc = GNUPG_Bad_Certificate_Path;
|
||||
goto leave;
|
||||
}
|
||||
log_debug ("certificate is good\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue