X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=crypt.c;h=d4ffdf864234e393b6ae1971a7714f763394780b;hp=f1e42d4a228f7c0c498ac505575b6a0f3667bf27;hb=66b97974ebba5c6ea967b713f84f62a1b72da8d2;hpb=8eb77a20423c3dcc44c4584a082e981391272cb2 diff --git a/crypt.c b/crypt.c index f1e42d4a..d4ffdf86 100644 --- a/crypt.c +++ b/crypt.c @@ -23,6 +23,7 @@ #include "fd.h" #include "crypt_backend.h" #include "base64.h" +#include "portable_io.h" struct asymmetric_key { RSA *rsa; @@ -96,7 +97,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)