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

« back to all changes in this revision

Viewing changes to bignum.c

  • Committer: Bazaar Package Importer
  • Author(s): Gerrit Pape, Matt Johnston, Gerrit Pape
  • Date: 2011-05-02 16:35:14 UTC
  • mfrom: (1.3.6 upstream) (14.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20110502163514-9txrl3m3lohjb4vb
Tags: 0.53.1-1
[ Matt Johnston ]
* New upstream release.
  * SSH_ORIGINAL_COMMAND environment variable is set by the server
    when an authorized_keys command is specified (closes: #604524).

[ Gerrit Pape ]
* debian/rules: add --enable-bundled-libtom option to ./configure.
* debian/rules: remove -DXAUTH_COMMAND="/usr/bin/X11/xauth -q from
  CFLAGS (workaround ./configure stupidity; closes: #625192).
* debian/diff/0003-options.h-use-usr-bin-xauth-instead-of...diff: new;
  use /usr/bin/xauth instead of /usr/bin/X11/xauth for XAUTH_COMMAND
  (closes: #614355).

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
void m_mp_init(mp_int *mp) {
32
32
 
33
33
        if (mp_init(mp) != MP_OKAY) {
34
 
                dropbear_exit("mem alloc error");
 
34
                dropbear_exit("Mem alloc error");
35
35
        }
36
36
}
37
37
 
45
45
    va_start(args, mp);        /* init args to next argument from caller */
46
46
    while (cur_arg != NULL) {
47
47
        if (mp_init(cur_arg) != MP_OKAY) {
48
 
                        dropbear_exit("mem alloc error");
 
48
                        dropbear_exit("Mem alloc error");
49
49
        }
50
50
        cur_arg = va_arg(args, mp_int*);
51
51
    }
55
55
void bytes_to_mp(mp_int *mp, const unsigned char* bytes, unsigned int len) {
56
56
 
57
57
        if (mp_read_unsigned_bin(mp, (unsigned char*)bytes, len) != MP_OKAY) {
58
 
                dropbear_exit("mem alloc error");
 
58
                dropbear_exit("Mem alloc error");
59
59
        }
60
60
}
61
61