Tiny fix to specfile.
[fedora-mingw.git] / gnutls / gnutls-2.6.2-nosrp.patch
1 diff -up gnutls-2.6.2/lib/gnutlsxx.cpp.nosrp gnutls-2.6.2/lib/gnutlsxx.cpp
2 --- gnutls-2.6.2/lib/gnutlsxx.cpp.nosrp 2008-11-12 10:56:28.000000000 +0100
3 +++ gnutls-2.6.2/lib/gnutlsxx.cpp       2008-12-04 14:34:10.000000000 +0100
4 @@ -396,12 +396,14 @@ void session::set_credentials( credentia
5      RETWRAP(gnutls_credentials_set( s, cred.get_type(), cred.ptr()));
6  }
7  
8 -#ifdef ENABLE_SRP
9  const char* server_session::get_srp_username() const
10  {
11 +#ifdef ENABLE_SRP
12      return gnutls_srp_server_get_username( s);
13 -}
14 +#else
15 +    return NULL;
16  #endif
17 +}
18  
19  const char* server_session::get_psk_username() const
20  {