Changeset View
Changeset View
Standalone View
Standalone View
src/gpgme.c
Show First 20 Lines • Show All 244 Lines • ▼ Show 20 Lines | gpgme_release (gpgme_ctx_t ctx) | ||||
_gpgme_sig_notation_clear (ctx); | _gpgme_sig_notation_clear (ctx); | ||||
free (ctx->sender); | free (ctx->sender); | ||||
free (ctx->signers); | free (ctx->signers); | ||||
free (ctx->lc_ctype); | free (ctx->lc_ctype); | ||||
free (ctx->lc_messages); | free (ctx->lc_messages); | ||||
free (ctx->override_session_key); | free (ctx->override_session_key); | ||||
free (ctx->request_origin); | free (ctx->request_origin); | ||||
free (ctx->auto_key_locate); | free (ctx->auto_key_locate); | ||||
free (ctx->trust_model); | |||||
_gpgme_engine_info_release (ctx->engine_info); | _gpgme_engine_info_release (ctx->engine_info); | ||||
ctx->engine_info = NULL; | ctx->engine_info = NULL; | ||||
DESTROY_LOCK (ctx->lock); | DESTROY_LOCK (ctx->lock); | ||||
free (ctx); | free (ctx); | ||||
} | } | ||||
void | void | ||||
▲ Show 20 Lines • Show All 288 Lines • ▼ Show 20 Lines | else if (!strcmp (name, "ignore-mdc-error")) | ||||
} | } | ||||
else if (!strcmp (name, "auto-key-locate")) | else if (!strcmp (name, "auto-key-locate")) | ||||
{ | { | ||||
free (ctx->auto_key_locate); | free (ctx->auto_key_locate); | ||||
ctx->auto_key_locate = strdup (value); | ctx->auto_key_locate = strdup (value); | ||||
if (!ctx->auto_key_locate) | if (!ctx->auto_key_locate) | ||||
err = gpg_error_from_syserror (); | err = gpg_error_from_syserror (); | ||||
} | } | ||||
else if (!strcmp (name, "trust-model")) | |||||
{ | |||||
free (ctx->trust_model); | |||||
ctx->trust_model = strdup (value); | |||||
if (!ctx->trust_model) | |||||
err = gpg_error_from_syserror (); | |||||
} | |||||
else | else | ||||
err = gpg_error (GPG_ERR_UNKNOWN_NAME); | err = gpg_error (GPG_ERR_UNKNOWN_NAME); | ||||
return err; | return err; | ||||
} | } | ||||
/* Get the context flag named NAME. See gpgme_set_ctx_flag for a list | /* Get the context flag named NAME. See gpgme_set_ctx_flag for a list | ||||
▲ Show 20 Lines • Show All 721 Lines • Show Last 20 Lines |