diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2018-06-21 17:38:51 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-06-21 17:41:32 +0200 |
commit | e06ae8e096da851d436b285fd657416129c42c17 (patch) | |
tree | c44730e43d129087f7b2b24499863e004dbc0ff8 | |
parent | 0940b0f29b4fef86e56dffdd13d978f9692b78fc (diff) | |
download | libssh-e06ae8e096da851d436b285fd657416129c42c17.tar.gz libssh-e06ae8e096da851d436b285fd657416129c42c17.tar.xz libssh-e06ae8e096da851d436b285fd657416129c42c17.zip |
include: Declare ge25519_base as extern
Thanks to Tilo Eckart.
The global variable "ge25519_base" is referenced in the module
"src/external/ed25519.c" and initialized in "src/external/ge25519.c".
The lack of the extern keyword in the header results in different
instances being compiled into both translation units with some
compilers.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r-- | include/libssh/ge25519.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libssh/ge25519.h b/include/libssh/ge25519.h index 64f63c6f..329bd042 100644 --- a/include/libssh/ge25519.h +++ b/include/libssh/ge25519.h @@ -28,7 +28,7 @@ typedef struct fe25519 t; } ge25519; -const ge25519 ge25519_base; +extern const ge25519 ge25519_base; int ge25519_unpackneg_vartime(ge25519 *r, const unsigned char p[32]); |