diff options
author | Simon Josefsson <simon@josefsson.org> | 2008-04-28 15:16:56 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2008-04-28 15:16:56 +0200 |
commit | 933cc1400edaf248362cfb9c539d89d6d2a52989 (patch) | |
tree | 1c17d97a10de4a52bab47b6f94c051e1744dd5b7 | |
parent | b5a10db461057c947fa50414c7dc58bb6c12a0f0 (diff) | |
download | gnutls-933cc1400edaf248362cfb9c539d89d6d2a52989.tar.gz |
Hide crypto.h definitions by default.
-rw-r--r-- | configure.in | 4 | ||||
-rw-r--r-- | includes/gnutls/crypto.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 2d07204b7e..b4b986fbb4 100644 --- a/configure.in +++ b/configure.in @@ -688,6 +688,10 @@ AC_CONFIG_COMMANDS([chmod-config],[[ chmod +x libextra/libgnutls-extra-config ]],[[]]) + +AC_DEFIN([INTERNAL_GNUTLS_CRYPTO_H_ENABLE_UNSUPPORTED_API], 1, + [Enable prototypes in includes/crypto.h.]) + AC_CONFIG_FILES([Makefile po/Makefile.in \ doc/Makefile doc/examples/Makefile doc/scripts/Makefile \ doc/manpages/Makefile doc/reference/Makefile \ diff --git a/includes/gnutls/crypto.h b/includes/gnutls/crypto.h index 8d44a0eac4..dc45165924 100644 --- a/includes/gnutls/crypto.h +++ b/includes/gnutls/crypto.h @@ -22,6 +22,8 @@ * */ +#if INTERNAL_GNUTLS_CRYPTO_H_ENABLE_UNSUPPORTED_API + #ifndef GNUTLS_CRYPTO_H # define GNUTLS_CRYPTO_H @@ -67,3 +69,5 @@ int gnutls_crypto_digest_register( gnutls_digest_algorithm_t algorithm, int prio int gnutls_crypto_rnd_register( int priority, gnutls_crypto_rnd_st* s); #endif + +#endif |