diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/tex/ex3.tex | 17 | ||||
-rw-r--r-- | doc/tex/serv1.tex | 5 |
2 files changed, 12 insertions, 10 deletions
diff --git a/doc/tex/ex3.tex b/doc/tex/ex3.tex index 6eec57ddc6..6aca20fbb9 100644 --- a/doc/tex/ex3.tex +++ b/doc/tex/ex3.tex @@ -41,17 +41,16 @@ int print_info(GNUTLS_STATE state) break; } - } - printf(" - Certificate info:\n"); - printf(" - Certificate version: #%d\n", gnutls_x509pki_client_get_peer_certificate_version(x509_info)); - - dn = gnutls_x509pki_client_get_peer_dn( x509_info); - PRINT_DN(dn); + printf(" - Certificate info:\n"); + printf(" - Certificate version: #%d\n", gnutls_x509pki_client_get_peer_certificate_version(x509_info)); - printf(" - Certificate Issuer's info:\n"); - dn = gnutls_x509pki_client_get_issuer_dn( x509_info); - PRINT_DN(dn); + dn = gnutls_x509pki_client_get_peer_dn( x509_info); + PRINT_DN(dn); + printf(" - Certificate Issuer's info:\n"); + dn = gnutls_x509pki_client_get_issuer_dn( x509_info); + PRINT_DN(dn); + } } tmp = gnutls_version_get_name(gnutls_get_current_version(state)); diff --git a/doc/tex/serv1.tex b/doc/tex/serv1.tex index 0cbdd96f5e..78cd49ca47 100644 --- a/doc/tex/serv1.tex +++ b/doc/tex/serv1.tex @@ -54,7 +54,10 @@ GNUTLS_STATE initialize_state() gnutls_set_cred(state, GNUTLS_SRP, srp_cred); gnutls_set_cred(state, GNUTLS_X509PKI, x509_cred); - + /* request client certificate if any. + */ + gnutls_set_certificate_request( state, GNUTLS_CERT_REQUEST); + return state; } |