diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-03-13 19:33:40 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-03-13 19:35:48 +0100 |
commit | 2c1771acb108f868f0a64fe15f89a4c2e8081a8f (patch) | |
tree | 6c29f750bc553d45f1bb5772f7e67a9e27d8c786 /lib/gnutlsxx.cpp | |
parent | 7381666124d30961ecf5c77fdfc0977942d6862f (diff) | |
download | gnutls-2c1771acb108f868f0a64fe15f89a4c2e8081a8f.tar.gz |
Added several ifdefs to avoid using disabled code.
Diffstat (limited to 'lib/gnutlsxx.cpp')
-rw-r--r-- | lib/gnutlsxx.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/lib/gnutlsxx.cpp b/lib/gnutlsxx.cpp index a01f462757..2bd7a443c9 100644 --- a/lib/gnutlsxx.cpp +++ b/lib/gnutlsxx.cpp @@ -506,6 +506,7 @@ namespace gnutls RETWRAP (gnutls_dh_get_pubkey (s, &raw_key)); } +#ifdef ENABLE_RSA_EXPORT void session::get_rsa_export_pubkey (gnutls_datum_t & exponent, gnutls_datum_t & modulus) const { @@ -517,6 +518,13 @@ namespace gnutls return RETWRAP (gnutls_rsa_export_get_modulus_bits (s)); } + void certificate_credentials:: + set_rsa_export_params (const rsa_params & params) + { + gnutls_certificate_set_rsa_export_params (cred, params.get_params_t ()); + } +#endif + void server_session:: set_certificate_request (gnutls_certificate_request_t req) { @@ -618,12 +626,6 @@ namespace gnutls gnutls_certificate_set_dh_params (cred, params.get_params_t ()); } - void certificate_credentials:: - set_rsa_export_params (const rsa_params & params) - { - gnutls_certificate_set_rsa_export_params (cred, params.get_params_t ()); - } - void certificate_credentials::set_verify_flags (unsigned int flags) { gnutls_certificate_set_verify_flags (cred, flags); @@ -927,6 +929,7 @@ psk_server_credentials::psk_server_credentials ():credentials // RSA +#ifdef ENABLE_RSA_EXPORT rsa_params::rsa_params () { RETWRAP (gnutls_rsa_params_init (¶ms)); @@ -996,5 +999,5 @@ psk_server_credentials::psk_server_credentials ():credentials RETWRAP (gnutls_rsa_params_export_raw (params, &m, &e, &d, &p, &q, &u, NULL)); } - +#endif } // namespace gnutls |