diff options
author | Brent Cook <bcook@cvs.openbsd.org> | 2018-07-24 10:47:20 +0000 |
---|---|---|
committer | Brent Cook <bcook@cvs.openbsd.org> | 2018-07-24 10:47:20 +0000 |
commit | 4de4cf30ef035c1cde0bb2f1b97767493326abda (patch) | |
tree | 5fda9bb14ca2fc7929550a489750eabecab76995 | |
parent | 43d0e70c31f77e4f187f7ec65c8f018fab08f3a8 (diff) |
add c++ symbol annotations
from Cameron Palmer
-rw-r--r-- | lib/libcrypto/modes/modes.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/libcrypto/modes/modes.h b/lib/libcrypto/modes/modes.h index a532cb3f412..67ec7518d62 100644 --- a/lib/libcrypto/modes/modes.h +++ b/lib/libcrypto/modes/modes.h @@ -1,4 +1,4 @@ -/* $OpenBSD: modes.h,v 1.2 2014/06/12 15:49:30 deraadt Exp $ */ +/* $OpenBSD: modes.h,v 1.3 2018/07/24 10:47:19 bcook Exp $ */ /* ==================================================================== * Copyright (c) 2008 The OpenSSL Project. All rights reserved. * @@ -8,6 +8,10 @@ #include <stddef.h> +#ifdef __cplusplus +extern "C" { +#endif + typedef void (*block128_f)(const unsigned char in[16], unsigned char out[16], const void *key); @@ -134,3 +138,7 @@ typedef struct xts128_context XTS128_CONTEXT; int CRYPTO_xts128_encrypt(const XTS128_CONTEXT *ctx, const unsigned char iv[16], const unsigned char *inp, unsigned char *out, size_t len, int enc); + +#ifdef __cplusplus +} +#endif |