manpagez: man pages & more
info gpgme
Home | html | info | man

File: gpgme.info,  Node: Protocol Selection,  Next: Crypto Engine,  Up: Context Attributes

7.4.1 Protocol Selection
------------------------

 -- Function: gpgme_error_t gpgme_set_protocol (gpgme_ctx_t CTX,
          gpgme_protocol_t PROTO)
     The function ‘gpgme_set_protocol’ sets the protocol used within the
     context CTX to PROTO.  All crypto operations will be performed by
     the crypto engine configured for that protocol.  *Note Protocols
     and Engines::.

     Setting the protocol with ‘gpgme_set_protocol’ does intentionally
     not check if the crypto engine for that protocol is available and
     installed correctly.  *Note Engine Version Check::.

     The function returns the error code ‘GPG_ERR_NO_ERROR’ if the
     protocol could be set successfully, and ‘GPG_ERR_INV_VALUE’ if
     PROTOCOL is not a valid protocol.

 -- Function: gpgme_protocol_t gpgme_get_protocol (gpgme_ctx_t CTX)
     The function ‘gpgme_get_protocol’ retrieves the protocol currently
     use with the context CTX.

© manpagez.com 2000-2024
Individual documents may contain additional copyright information.