diff options
author | Simon Josefsson <simon@josefsson.org> | 2008-05-07 15:39:13 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2008-05-07 15:39:13 +0200 |
commit | e91acdf32910381cbd4fd8908c0625a187488bae (patch) | |
tree | 6a848eaa75ce473b5a51364e5207a128600a7d88 /doc | |
parent | 13c6c88d456cf6d67e99fa041ddf5418a84ab76a (diff) | |
download | gnutls-e91acdf32910381cbd4fd8908c0625a187488bae.tar.gz |
libgnutls: Compile if SRP is disabled.
Report and tiny patches from <jared.jennings.ctr@eglin.af.mil>, see
<https://savannah.gnu.org/support/index.php?106342>.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/examples/ex-session-info.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/examples/ex-session-info.c b/doc/examples/ex-session-info.c index dded275152..e7856da4a8 100644 --- a/doc/examples/ex-session-info.c +++ b/doc/examples/ex-session-info.c @@ -1,4 +1,4 @@ -/* Copyright 2007 Free Software Foundation +/* Copyright 2007, 2008 Free Software Foundation * * Copying and distribution of this file, with or without modification, * are permitted in any medium without royalty provided the copyright @@ -43,10 +43,12 @@ print_info (gnutls_session_t session) break; +#ifdef ENABLE_SRP case GNUTLS_CRD_SRP: printf ("- SRP session with username %s\n", gnutls_srp_server_get_username (session)); break; +#endif case GNUTLS_CRD_PSK: if (gnutls_psk_server_get_username (session) != NULL) |