481 |
return type; |
return type; |
482 |
} |
} |
483 |
|
|
484 |
|
|
485 |
|
/* Add the notation data from @notation to the user ID |
486 |
|
with the index @_uid_idx. |
487 |
|
Return value: 0 on success. */ |
488 |
|
gpgme_error_t |
489 |
|
GpgKeyEdit::addNotation (int _uid_idx, const char *_notation) |
490 |
|
{ |
491 |
|
if (!key) |
492 |
|
return gpg_error (GPG_ERR_INV_OBJ); |
493 |
|
if (key_has_passwd && !this->pass) |
494 |
|
return gpg_error (GPG_ERR_INV_PASSPHRASE); |
495 |
|
|
496 |
|
type = GPG_EDITKEY_NOTATION; |
497 |
|
this->uid_index = _uid_idx; |
498 |
|
this->notation = (char*)_notation; |
499 |
|
return gpg_editkey (this->ctx, this->key, this); |
500 |
|
} |
501 |
|
|
502 |
|
|
503 |
/* Sign the key stored in the object with the |
/* Sign the key stored in the object with the |
504 |
signing mode @mode and the signature class @sig_class. |
signing mode @mode and the signature class @sig_class. |
505 |
Return value: 0 on success. */ |
Return value: 0 on success. */ |