X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=crypt.c;h=39fcd7edc136c6b81ef80b5132ea59ddbbeb74b1;hp=f1e42d4a228f7c0c498ac505575b6a0f3667bf27;hb=d31995b3;hpb=8eb77a20423c3dcc44c4584a082e981391272cb2 diff --git a/crypt.c b/crypt.c index f1e42d4a..39fcd7ed 100644 --- a/crypt.c +++ b/crypt.c @@ -1,8 +1,4 @@ -/* - * Copyright (C) 2005 Andre Noll - * - * Licensed under the GPL v2. For licencing details see COPYING. - */ +/* Copyright (C) 2005 Andre Noll , see file COPYING. */ /** \file crypt.c Openssl-based encryption/decryption routines. */ @@ -23,6 +19,7 @@ #include "fd.h" #include "crypt_backend.h" #include "base64.h" +#include "portable_io.h" struct asymmetric_key { RSA *rsa; @@ -96,7 +93,7 @@ static int read_bignum(const unsigned char *buf, size_t len, BIGNUM **result) return -E_BIGNUM; if (p + 4 > end) return -E_BIGNUM; - bnsize = read_ssh_u32(p); + bnsize = read_u32_be(p); PARA_DEBUG_LOG("bnsize: %u\n", bnsize); p += 4; if (p + bnsize < p)