Mercurial > dropbear
comparison libtomcrypt/src/misc/crypt/crypt_argchk.c @ 1511:5916af64acd4 fuzz
merge from main
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 17 Feb 2018 19:29:51 +0800 |
parents | 6dba84798cd5 |
children |
comparison
equal
deleted
inserted
replaced
1457:32f990cc96b1 | 1511:5916af64acd4 |
---|---|
3 * LibTomCrypt is a library that provides various cryptographic | 3 * LibTomCrypt is a library that provides various cryptographic |
4 * algorithms in a highly modular and flexible manner. | 4 * algorithms in a highly modular and flexible manner. |
5 * | 5 * |
6 * The library is free for all purposes without any express | 6 * The library is free for all purposes without any express |
7 * guarantee it works. | 7 * guarantee it works. |
8 * | |
9 * Tom St Denis, [email protected], http://libtom.org | |
10 */ | 8 */ |
11 #include "tomcrypt.h" | 9 #include "tomcrypt.h" |
12 #include <signal.h> | |
13 | 10 |
14 /** | 11 /** |
15 @file crypt_argchk.c | 12 @file crypt_argchk.c |
16 Perform argument checking, Tom St Denis | 13 Perform argument checking, Tom St Denis |
17 */ | 14 */ |
18 | 15 |
19 #if (ARGTYPE == 0) | 16 #if (ARGTYPE == 0) |
20 void crypt_argchk(char *v, char *s, int d) | 17 void crypt_argchk(const char *v, const char *s, int d) |
21 { | 18 { |
22 fprintf(stderr, "LTC_ARGCHK '%s' failure on line %d of file %s\n", | 19 fprintf(stderr, "LTC_ARGCHK '%s' failure on line %d of file %s\n", |
23 v, d, s); | 20 v, d, s); |
24 abort(); | 21 abort(); |
25 } | 22 } |
26 #endif | 23 #endif |
27 | 24 |
28 /* $Source$ */ | 25 /* ref: $Format:%D$ */ |
29 /* $Revision$ */ | 26 /* git commit: $Format:%H$ */ |
30 /* $Date$ */ | 27 /* commit time: $Format:%ai$ */ |