summaryrefslogtreecommitdiff
path: root/doc/examples/ex-serv-srp.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-01-15 10:24:17 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-01-15 10:24:17 +0100
commitb4c9200a7044104a668e8be17c4790c2072ff0a2 (patch)
tree5f719349dabd0802acf0c52407372ad6c60b1b91 /doc/examples/ex-serv-srp.c
parent16fc2ccaa033bac1fe94f9de7b1444ea730d8e0e (diff)
downloadgnutls-b4c9200a7044104a668e8be17c4790c2072ff0a2.tar.gz
Introduced GNUTLS_DEFAULT_PRIORITY macro
Diffstat (limited to 'doc/examples/ex-serv-srp.c')
-rw-r--r--doc/examples/ex-serv-srp.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/doc/examples/ex-serv-srp.c b/doc/examples/ex-serv-srp.c
index d8b3ac7c7f..3b2cd57021 100644
--- a/doc/examples/ex-serv-srp.c
+++ b/doc/examples/ex-serv-srp.c
@@ -15,10 +15,8 @@
#include <unistd.h>
#include <gnutls/gnutls.h>
-#if GNUTLS_VERSION_NUMBER >= 0x030300
-# define DEFAULT_PRIORITY "SYSTEM"
-#else
-# define DEFAULT_PRIORITY "NORMAL"
+#if GNUTLS_VERSION_NUMBER < 0x030300
+# define GNUTLS_DEFAULT_PRIORITY "NORMAL"
#endif
#define SRP_PASSWD "tpasswd"
@@ -96,7 +94,7 @@ int main(void)
for (;;) {
gnutls_init(&session, GNUTLS_SERVER);
gnutls_priority_set_direct(session,
- DEFAULT_PRIORITY
+ GNUTLS_DEFAULT_PRIORITY
":-KX-ALL:+SRP:+SRP-DSS:+SRP-RSA",
NULL);
gnutls_credentials_set(session, GNUTLS_CRD_SRP, srp_cred);