From: bcook Date: Tue, 24 Jul 2018 10:47:19 +0000 (+0000) Subject: add c++ symbol annotations X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=981266b489787b860a0a203f8411cc735a62864c;p=openbsd add c++ symbol annotations from Cameron Palmer --- 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 +#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