diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/manpages/Makefile.am | 4 | ||||
-rw-r--r-- | doc/manpages/srptool.1 (renamed from doc/manpages/gnutls-srpcrypt.1) | 2 | ||||
-rw-r--r-- | doc/tex/ex-x509-info.tex | 12 |
3 files changed, 4 insertions, 14 deletions
diff --git a/doc/manpages/Makefile.am b/doc/manpages/Makefile.am index 199f63bf4b..53118981fd 100644 --- a/doc/manpages/Makefile.am +++ b/doc/manpages/Makefile.am @@ -1,3 +1,3 @@ -man_MANS = gnutls-cli.1 gnutls-cli-debug.1 gnutls-serv.1 gnutls-srpcrypt.1 certtool.1 -EXTRA_DIST = gnutls-cli.1 gnutls-cli-debug.1 gnutls-serv.1 gnutls-srpcrypt.1 certtool.1 +man_MANS = gnutls-cli.1 gnutls-cli-debug.1 gnutls-serv.1 srptool.1 certtool.1 +EXTRA_DIST = gnutls-cli.1 gnutls-cli-debug.1 gnutls-serv.1 srptool.1 certtool.1 diff --git a/doc/manpages/gnutls-srpcrypt.1 b/doc/manpages/srptool.1 index 4fb47da56f..851e6db556 100644 --- a/doc/manpages/gnutls-srpcrypt.1 +++ b/doc/manpages/srptool.1 @@ -1,6 +1,6 @@ .TH gnutls\-srpcrypt 1 "December 1st 2003" .SH NAME -gnutls\-srpcrypt \- Simple SRP password tool +srptool \- Simple SRP password tool .SH SYNOPSIS gnutls\-srpcrypt [\fIoptions\fR] .SH DESCRIPTION diff --git a/doc/tex/ex-x509-info.tex b/doc/tex/ex-x509-info.tex index 9f21c6719a..e7dd772059 100644 --- a/doc/tex/ex-x509-info.tex +++ b/doc/tex/ex-x509-info.tex @@ -76,17 +76,7 @@ static void print_x509_certificate_info(gnutls_session session) algo = gnutls_x509_crt_get_pk_algorithm(cert, &bits); - printf("Certificate public key: "); - - if (algo == GNUTLS_PK_RSA) { - printf("RSA\n"); - printf(" Modulus: %d bits\n", bits); - } else if (algo == GNUTLS_PK_DSA) { - printf("DSA\n"); - printf(" Exponent: %d bits\n", bits); - } else { - printf("UNKNOWN\n"); - } + printf("Certificate public key: %s", gnutls_pk_algorithm_get_name(algo)); /* Print the version of the X.509 * certificate. |