~ubuntu-branches/ubuntu/precise/dropbear/precise

« back to all changes in this revision

Viewing changes to libtomcrypt/src/headers/tomcrypt_argchk.h

  • Committer: Bazaar Package Importer
  • Author(s): Gerrit Pape
  • Date: 2007-03-02 20:48:18 UTC
  • mfrom: (1.3.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070302204818-ozmbou2sbyj7dus5
Tags: 0.49-1
* new upstream release, fixes
  * CVE-2007-1099: dropbear dbclient insufficient warning on hostkey
    mismatch (closes: #412899).
  * dbclient uses static "Password:" prompt instead of using the server's
    prompt (closes: #394996).
* debian/control: Suggests: openssh-client, not ssh (closes: #405686);
  Standards-Version: 3.7.2.2.
* debian/README.Debian: ssh -> openssh-server, openssh-client; remove
  'Replacing OpenSSH "sshd" with Dropbear' part, this is simply done by not
  installing the openssh-server package.
* debian/README.runit: runsvstat -> sv status.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
/* this is the default LibTomCrypt macro  */
8
8
void crypt_argchk(char *v, char *s, int d);
9
9
#define LTC_ARGCHK(x) if (!(x)) { crypt_argchk(#x, __FILE__, __LINE__); }
 
10
#define LTC_ARGCHKVD(x) LTC_ARGCHK(x)
10
11
 
11
12
#elif ARGTYPE == 1
12
13
 
13
14
/* fatal type of error */
14
15
#define LTC_ARGCHK(x) assert((x))
 
16
#define LTC_ARGCHKVD(x) LTC_ARGCHK(x)
15
17
 
16
18
#elif ARGTYPE == 2
17
19
 
 
20
#define LTC_ARGCHK(x) if (!(x)) { fprintf(stderr, "\nwarning: ARGCHK failed at %s:%d\n", __FILE__, __LINE__); }
 
21
#define LTC_ARGCHKVD(x) LTC_ARGCHK(x)
 
22
 
 
23
#elif ARGTYPE == 3
 
24
 
18
25
#define LTC_ARGCHK(x) 
 
26
#define LTC_ARGCHKVD(x) LTC_ARGCHK(x)
 
27
 
 
28
#elif ARGTYPE == 4
 
29
 
 
30
#define LTC_ARGCHK(x)   if (!(x)) return CRYPT_INVALID_ARG;
 
31
#define LTC_ARGCHKVD(x) if (!(x)) return;
19
32
 
20
33
#endif
21
34
 
22
35
 
23
36
/* $Source: /cvs/libtom/libtomcrypt/src/headers/tomcrypt_argchk.h,v $ */
24
 
/* $Revision: 1.2 $ */
25
 
/* $Date: 2005/05/05 14:35:58 $ */
 
37
/* $Revision: 1.5 $ */
 
38
/* $Date: 2006/08/27 20:50:21 $ */