summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi/examples
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2019-05-07 11:12:21 +0200
committerNeal H. Walfield <neal@pep.foundation>2019-05-07 12:18:42 +0200
commit381ecfedce31d38d6bd447d85a05f7d9a458c38b (patch)
treefc9b245eb8a46bee88e9bdaac00c7efd91d70cfc /openpgp-ffi/examples
parent4ecdcafbb1a46a39e7fe54c2802c421c2160884d (diff)
openpgp: Rename TPKBuilder::default to TPKBuilder::new
- One would think that TPKBuilder::default would return something filled with useful defaults, but it just returns a nearly empty builder. Rename it to TPKBuilder::new, which is less misleading.
Diffstat (limited to 'openpgp-ffi/examples')
-rw-r--r--openpgp-ffi/examples/generate-key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp-ffi/examples/generate-key.c b/openpgp-ffi/examples/generate-key.c
index 268e5593..96a7f2fc 100644
--- a/openpgp-ffi/examples/generate-key.c
+++ b/openpgp-ffi/examples/generate-key.c
@@ -8,7 +8,7 @@ main () {
pgp_status_t rc;
/* First, generate the key. */
- pgp_tpk_builder_t builder = pgp_tpk_builder_default ();
+ pgp_tpk_builder_t builder = pgp_tpk_builder_new ();
pgp_tpk_builder_set_cipher_suite (&builder, PGP_TPK_CIPHER_SUITE_CV25519);
pgp_tpk_t tpk;