X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fgcrypt%2Frsagen.c;h=01bb1378a46bb2a1ee284f43237074edee1cb7f6;hb=28b7a53b6;hp=acf96acf5224aabc7ce6e4d707f90b2642e74d00;hpb=0912276c6467aa3ee6f570b31245367319da572a;p=tinc diff --git a/src/gcrypt/rsagen.c b/src/gcrypt/rsagen.c index acf96acf..01bb1378 100644 --- a/src/gcrypt/rsagen.c +++ b/src/gcrypt/rsagen.c @@ -1,6 +1,6 @@ /* rsagen.c -- RSA key generation and export - Copyright (C) 2008-2012 Guus Sliepen + Copyright (C) 2008-2022 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,15 +17,15 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include "system.h" +#include "../system.h" #include #include -#include "../rsagen.h" -#include "xalloc.h" #include "rsa.h" #include "pem.h" +#include "../rsagen.h" +#include "../xalloc.h" // ASN.1 tags. typedef enum { @@ -106,7 +106,7 @@ static size_t der_fill(uint8_t *derbuf, bool is_private, const gcry_mpi_t mpi[], der += len; } - assert(der - derbuf == derlen); + assert((size_t)(der - derbuf) == derlen); return derlen; }