summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/gost/gost2814789.c
diff options
context:
space:
mode:
authorjsing <>2014-12-07 16:33:51 +0000
committerjsing <>2014-12-07 16:33:51 +0000
commit6095fdcf15afb6c9da4fd123ad558a7abb9e2524 (patch)
treea2faf277952c8186e6399eadbeaee87c2d4466ce /src/lib/libcrypto/gost/gost2814789.c
parent4537f91502a17dad41a431e723dbab99cbda4069 (diff)
downloadopenbsd-6095fdcf15afb6c9da4fd123ad558a7abb9e2524.tar.gz
openbsd-6095fdcf15afb6c9da4fd123ad558a7abb9e2524.tar.bz2
openbsd-6095fdcf15afb6c9da4fd123ad558a7abb9e2524.zip
Make GOST compile with a strict C compiler - in this case incrementing a
void pointer is undefined and initialising an array with {} is a syntax error. Based on a diff from kinichiro inoguchi.
Diffstat (limited to 'src/lib/libcrypto/gost/gost2814789.c')
-rw-r--r--src/lib/libcrypto/gost/gost2814789.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/gost/gost2814789.c b/src/lib/libcrypto/gost/gost2814789.c
index 1c11ddd93e..e1084cb4ac 100644
--- a/src/lib/libcrypto/gost/gost2814789.c
+++ b/src/lib/libcrypto/gost/gost2814789.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: gost2814789.c,v 1.2 2014/11/09 23:06:52 miod Exp $ */ 1/* $OpenBSD: gost2814789.c,v 1.3 2014/12/07 16:33:51 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> 3 * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
4 * Copyright (c) 2005-2006 Cryptocom LTD 4 * Copyright (c) 2005-2006 Cryptocom LTD
@@ -416,8 +416,8 @@ GOST2814789IMIT_Init(GOST2814789IMIT_CTX *c, int nid)
416} 416}
417 417
418static void 418static void
419GOST2814789IMIT_block_data_order(GOST2814789IMIT_CTX *ctx, const void *p, 419GOST2814789IMIT_block_data_order(GOST2814789IMIT_CTX *ctx,
420 size_t num) 420 const unsigned char *p, size_t num)
421{ 421{
422 int i; 422 int i;
423 423