aboutsummaryrefslogtreecommitdiffstats
path: root/src/genkey.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-06-14 08:12:56 +0000
committerWerner Koch <[email protected]>2019-06-14 08:16:06 +0000
commit153f1128f81a934868a4175e73342b1adb9a969e (patch)
tree2e5ddb203f0f411fff7743176e0e30a63f881fc0 /src/genkey.c
parentcore: Refactor the wait code utilizing the new fdtable. (diff)
downloadgpgme-153f1128f81a934868a4175e73342b1adb9a969e.tar.gz
gpgme-153f1128f81a934868a4175e73342b1adb9a969e.zip
core: Use a better name for the internal synchronous wait.
* src/wait.c (_gpgme_wait_on_condition): Rename to ... (_gpgme_sync_wait): this. Small code refactoring. (_gpgme_wait_one, _gpgme_wait_one_ext): Remove and change all callers to use _gpgme_sync_wait. * src/fdtable.c (_gpgme_fdtable_run_io_cbs): Move TRACE up. -- Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'src/genkey.c')
-rw-r--r--src/genkey.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/genkey.c b/src/genkey.c
index 77576b18..e23ef2d6 100644
--- a/src/genkey.c
+++ b/src/genkey.c
@@ -316,7 +316,7 @@ gpgme_op_genkey (gpgme_ctx_t ctx, const char *parms, gpgme_data_t pubkey,
err = genkey_start (ctx, 1, parms, pubkey, seckey);
if (!err)
- err = _gpgme_wait_one (ctx);
+ err = _gpgme_sync_wait (ctx, NULL, NULL);
return TRACE_ERR (err);
}
@@ -400,7 +400,7 @@ gpgme_op_createkey (gpgme_ctx_t ctx, const char *userid, const char *algo,
err = createkey_start (ctx, 1,
userid, algo, reserved, expires, anchorkey, flags);
if (!err)
- err = _gpgme_wait_one (ctx);
+ err = _gpgme_sync_wait (ctx, NULL, NULL);
return TRACE_ERR (err);
}
@@ -487,7 +487,7 @@ gpgme_op_createsubkey (gpgme_ctx_t ctx, gpgme_key_t key, const char *algo,
err = createsubkey_start (ctx, 1, key, algo, reserved, expires, flags);
if (!err)
- err = _gpgme_wait_one (ctx);
+ err = _gpgme_sync_wait (ctx, NULL, NULL);
return TRACE_ERR (err);
}
@@ -571,7 +571,7 @@ gpgme_op_adduid (gpgme_ctx_t ctx,
err = addrevuid_start (ctx, 1, 0, key, userid, flags);
if (!err)
- err = _gpgme_wait_one (ctx);
+ err = _gpgme_sync_wait (ctx, NULL, NULL);
return TRACE_ERR (err);
}
@@ -608,7 +608,7 @@ gpgme_op_revuid (gpgme_ctx_t ctx,
err = addrevuid_start (ctx, 1, GENKEY_EXTRAFLAG_REVOKE, key, userid, flags);
if (!err)
- err = _gpgme_wait_one (ctx);
+ err = _gpgme_sync_wait (ctx, NULL, NULL);
return TRACE_ERR (err);
}
@@ -640,7 +640,7 @@ set_uid_flag (gpgme_ctx_t ctx, int synchronous,
return err = gpg_error (GPG_ERR_UNKNOWN_NAME);
if (synchronous && !err)
- err = _gpgme_wait_one (ctx);
+ err = _gpgme_sync_wait (ctx, NULL, NULL);
return TRACE_ERR (err);
}