summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common.c1
-rw-r--r--src/serv.c8
2 files changed, 4 insertions, 5 deletions
diff --git a/src/common.c b/src/common.c
index 0238951bfa..6f7eadf8f5 100644
--- a/src/common.c
+++ b/src/common.c
@@ -42,7 +42,6 @@ void print_x509_info(GNUTLS_STATE state)
time_t expiret = gnutls_certificate_expiration_time_peers(state);
time_t activet = gnutls_certificate_activation_time_peers(state);
-
cert_list = gnutls_certificate_get_peers(state, &cert_list_size);
if (cert_list_size <= 0)
diff --git a/src/serv.c b/src/serv.c
index f2f39f6327..0f0b651082 100644
--- a/src/serv.c
+++ b/src/serv.c
@@ -497,11 +497,11 @@ int main(int argc, char **argv)
}
if (pgp_certfile != NULL)
- if (gnutls_certificate_set_openpgp_key_file
- (cert_cred, pgp_certfile, pgp_keyfile) < 0) {
+ if ((ret=gnutls_certificate_set_openpgp_key_file
+ (cert_cred, pgp_certfile, pgp_keyfile)) < 0) {
fprintf(stderr,
- "Error while reading the OpenPGP key pair ('%s', '%s')\n",
- pgp_certfile, pgp_keyfile);
+ "Error[%d] while reading the OpenPGP key pair ('%s', '%s')\n",
+ ret, pgp_certfile, pgp_keyfile);
}
gnutls_certificate_set_openpgp_keyserver(cert_cred, pgp_keyserver, 0);