commit b33805296f9241dc58fac40c9d99dce22e966cc1 from: Martijn van Duren date: Fri Apr 08 11:54:25 2022 UTC Put pklen and tmp in #ifdef HAVE_ED25519 commit - 62823db4a40d43e7a9df5f0cfe0a1301580f813a commit + b33805296f9241dc58fac40c9d99dce22e966cc1 blob - 1eff63dc407251a127f7f5bc3a53d29ac6dbc556 blob + d543715e91c57826e1d23ae0f752c984f0291275 --- ltok.c +++ ltok.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Martijn van Duren + * Copyright (c) 2020-2022 Martijn van Duren * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above blob - 53f593f7ff572b8a02bdb6d3b2822dad66daccc0 blob + cee68002870cea1b7b26b1c6f40800b7b93f04c1 --- ltok.h +++ ltok.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Martijn van Duren + * Copyright (c) 2020-2022 Martijn van Duren * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above blob - 5b0f1e9883cc541964eb5819112b2995d118708d blob + ef5e5bc01a6ad993c11b1f94b07214aad26fb307 --- main.c +++ main.c @@ -1210,9 +1210,13 @@ dkim_key_text_parse(struct signature *sig, const char char tagname, *hashname; const char *end, *tagvend, *b64; char pkraw[UINT16_MAX] = "", pkimp[UINT16_MAX]; - size_t pkrawlen = 0, pkoff, linelen, pklen; - int h = 0, k = 0, n = 0, p = 0, s = 0, t = 0, first = 1, tmp; + size_t pkrawlen = 0, pkoff, linelen; + int h = 0, k = 0, n = 0, p = 0, s = 0, t = 0, first = 1; BIO *bio; +#ifdef HAVE_ED25519 + size_t pklen; + int tmp; +#endif key = osmtpd_ltok_skip_fws(key, 1); /* Validate syntax early */