- snprintf(filename, sizeof filename, "%s" SLASH "ecdsa_key.priv", mesh->confbase);
- f = fopenmask(filename, "w", 0600);
-
- if(!ecdsa_write_pem_private_key(key, f)) {
- fprintf(stderr, "Error writing private key!\n");
- ecdsa_free(key);
- fclose(f);
- return false;
- }
-
- fclose(f);
-