Add external c declaration for c++

To make sure c++ name mangling works correctly c code should be noted "extern"

Signed-off-by: Norbert Pocs <npocs@redhat.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
(cherry picked from commit d1947b55ec)
This commit is contained in:
Norbert Pocs
2022-10-24 12:50:46 +02:00
committed by Andreas Schneider
parent 80c994ef72
commit 7fd953ef42
42 changed files with 335 additions and 0 deletions

View File

@@ -7,6 +7,10 @@
#define POLY1305_H
#include "libssh/chacha20-poly1305-common.h"
#ifdef __cplusplus
extern "C" {
#endif
void poly1305_auth(uint8_t out[POLY1305_TAGLEN], const uint8_t *m, size_t inlen,
const uint8_t key[POLY1305_KEYLEN])
#ifdef HAVE_GCC_BOUNDED_ATTRIBUTE
@@ -16,4 +20,8 @@ void poly1305_auth(uint8_t out[POLY1305_TAGLEN], const uint8_t *m, size_t inlen,
#endif
;
#ifdef __cplusplus
}
#endif
#endif /* POLY1305_H */