aboutsummaryrefslogtreecommitdiff
path: root/gost_md2012.c
diff options
context:
space:
mode:
authorDmitry Ryazantsev <dimitriy.ryazantcev@gmail.com>2018-01-09 16:04:55 +0200
committerDmitry Ryazantsev <dimitriy.ryazantcev@gmail.com>2018-01-10 15:27:25 +0200
commit9d0a4584f65d09d396e2dd655f7ae390ac64d60e (patch)
tree4d581f6a7c8a106073f4c411c58f8326f4de7882 /gost_md2012.c
parent2c5c85adf6abc27fd5894c0a82587bc6fbdfb170 (diff)
downloadgost-engine-9d0a4584f65d09d396e2dd655f7ae390ac64d60e.zip
gost-engine-9d0a4584f65d09d396e2dd655f7ae390ac64d60e.tar.gz
gost-engine-9d0a4584f65d09d396e2dd655f7ae390ac64d60e.tar.bz2
Fix MSVS2017 build errors.
Also add missing getopt.h header for gostsum and gost12sum tools build in MSVS (borrowed from https://github.com/skandhurkat/Getopt-for-Visual-Studio).
Diffstat (limited to 'gost_md2012.c')
-rw-r--r--gost_md2012.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gost_md2012.c b/gost_md2012.c
index 712e0ac..5acb111 100644
--- a/gost_md2012.c
+++ b/gost_md2012.c
@@ -161,9 +161,7 @@ static int gost_digest_ctrl_512(EVP_MD_CTX *ctx, int type, int arg, void *ptr)
strcpy(*((char **)ptr), micalg_512);
return 1;
}
- return 0;
}
- return 1;
default:
return 0;
}