summaryrefslogtreecommitdiff
path: root/rsa-compat.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2006-11-24 17:27:43 +0100
committerNiels Möller <nisse@lysator.liu.se>2006-11-24 17:27:43 +0100
commit82cb285e0ff3c60f7a2b185803a493067d0d1713 (patch)
tree502eb8a180b0ce443ffcc423916b4f284109b893 /rsa-compat.h
parentf2b218bcaba3b7d50cfbad1b1029c954c54a0df6 (diff)
downloadnettle-82cb285e0ff3c60f7a2b185803a493067d0d1713.tar.gz
Added C++ guards.
Rev: src/nettle/aes.h:1.8 Rev: src/nettle/arcfour.h:1.6 Rev: src/nettle/arctwo.h:1.3 Rev: src/nettle/asn1.h:1.3 Rev: src/nettle/base16.h:1.4 Rev: src/nettle/base64.h:1.15 Rev: src/nettle/bignum.h:1.11 Rev: src/nettle/blowfish.h:1.10 Rev: src/nettle/buffer.h:1.6 Rev: src/nettle/cast128.h:1.6 Rev: src/nettle/cbc.h:1.9 Rev: src/nettle/ctr.h:1.3 Rev: src/nettle/des-compat.h:1.13 Rev: src/nettle/des.h:1.11 Rev: src/nettle/dsa.h:1.10 Rev: src/nettle/hmac.h:1.6 Rev: src/nettle/knuth-lfib.h:1.4 Rev: src/nettle/md2.h:1.4 Rev: src/nettle/md4.h:1.4 Rev: src/nettle/md5-compat.h:1.3 Rev: src/nettle/md5.h:1.9 Rev: src/nettle/memxor.h:1.5 Rev: src/nettle/nettle-meta.h:1.15 Rev: src/nettle/nettle-types.h:1.2 Rev: src/nettle/pgp.h:1.8 Rev: src/nettle/pkcs1.h:1.4 Rev: src/nettle/realloc.h:1.3 Rev: src/nettle/rsa-compat.h:1.4 Rev: src/nettle/rsa.h:1.26 Rev: src/nettle/serpent.h:1.8 Rev: src/nettle/sexp.h:1.18 Rev: src/nettle/sha.h:1.7 Rev: src/nettle/testsuite/testutils.h:1.24 Rev: src/nettle/twofish.h:1.7 Rev: src/nettle/yarrow.h:1.12
Diffstat (limited to 'rsa-compat.h')
-rw-r--r--rsa-compat.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/rsa-compat.h b/rsa-compat.h
index 7b40f3cf..9622503d 100644
--- a/rsa-compat.h
+++ b/rsa-compat.h
@@ -28,6 +28,10 @@
#include "rsa.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Name mangling */
#define R_SignInit nettle_R_SignInit
#define R_SignUpdate nettle_R_SignUpdate
@@ -120,6 +124,8 @@ R_VerifyFinal(R_SIGNATURE_CTX *ctx,
unsigned length,
R_RSA_PUBLIC_KEY *key);
+#ifdef __cplusplus
+}
+#endif
#endif /* NETTLE_RSA_COMPAT_H_INCLUDED */
-