/[winpt]/trunk/Src/wptKeyEdit.cpp
ViewVC logotype

Diff of /trunk/Src/wptKeyEdit.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 199 by twoaday, Tue Mar 14 11:01:22 2006 UTC revision 200 by twoaday, Mon Apr 17 09:12:50 2006 UTC
# Line 481  GpgKeyEdit::getType (void) Line 481  GpgKeyEdit::getType (void)
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. */

Legend:
Removed from v.199  
changed lines
  Added in v.200

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26