summaryrefslogtreecommitdiff
path: root/lib/gnutlsxx.cpp
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-11-14 14:12:04 +0100
committerSimon Josefsson <simon@josefsson.org>2008-11-14 14:12:04 +0100
commit9de24f935dc1c145a45dbc8a6080d1ec7b29e56f (patch)
treef72163ce869083c4d9785b0f9591b4529aad074e /lib/gnutlsxx.cpp
parent16130e32515efe0bd3b2a5554a2a10639a03d5cd (diff)
downloadgnutls-9de24f935dc1c145a45dbc8a6080d1ec7b29e56f.tar.gz
Make it compile with --disable-openpgp.
Diffstat (limited to 'lib/gnutlsxx.cpp')
-rw-r--r--lib/gnutlsxx.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gnutlsxx.cpp b/lib/gnutlsxx.cpp
index e7dc163792..83453f058e 100644
--- a/lib/gnutlsxx.cpp
+++ b/lib/gnutlsxx.cpp
@@ -460,7 +460,9 @@ void* session::get_user_ptr( ) const
void session::send_openpgp_cert( gnutls_openpgp_crt_status_t status)
{
- gnutls_openpgp_send_cert(s, status);
+#ifdef ENABLE_OPENPGP
+ gnutls_openpgp_send_cert(s, status);
+#endif
}