-/* $Id: key.c,v 1.3 2021/11/18 17:26:43 tb Exp $ */
+/* $Id: key.c,v 1.4 2022/02/22 12:36:17 tb Exp $ */
/*
* Copyright (c) 2019 Renaud Allard <renaud@allard.it>
* Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
/* Serialise the key to the disc in EC format */
if (!PEM_write_ECPrivateKey(f, eckey, NULL, NULL, 0, NULL, NULL)) {
- warnx("PEM_write_ECPrivateKey");
+ warnx("%s: PEM_write_ECPrivateKey", fname);
goto err;
}
goto err;
}
- warnx("%s: PEM_write_ECPrivateKey", fname);
-
goto out;
err: