NeoMutt  2024-10-02-37-gfa9146
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
gpgme_functions.h File Reference

Gpgme functions. More...

#include <stdbool.h>
+ Include dependency graph for gpgme_functions.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  GpgmeData
 Data to pass to the Gpgme Functions. More...
 
struct  GpgmeFunction
 A NeoMutt function. More...
 

Typedefs

typedef int(* gpgme_function_t) (struct GpgmeData *gd, int op)
 

Functions

bool crypt_keys_are_valid (struct CryptKeyInfo *keys)
 Are all these keys valid?
 
int gpgme_function_dispatcher (struct MuttWindow *win, int op)
 Perform a Gpgme function - Implements function_dispatcher_t -.
 

Detailed Description

Gpgme functions.

Authors
  • Richard Russon

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file gpgme_functions.h.

Typedef Documentation

◆ gpgme_function_t

typedef int(* gpgme_function_t) (struct GpgmeData *gd, int op)

Definition at line 53 of file gpgme_functions.h.

Function Documentation

◆ crypt_keys_are_valid()

bool crypt_keys_are_valid ( struct CryptKeyInfo keys)

Are all these keys valid?

Parameters
keysSet of keys to test
Return values
trueAll keys are valid

Definition at line 720 of file gpgme_functions.c.

721{
722 for (struct CryptKeyInfo *k = keys; k != NULL; k = k->next)
723 {
724 if (!crypt_key_is_valid(k))
725 return false;
726 }
727
728 return true;
729}
static bool crypt_key_is_valid(struct CryptKeyInfo *k)
Is the key valid.
A stored PGP key.
Definition: crypt_gpgme.h:44
struct CryptKeyInfo * next
Linked list.
Definition: crypt_gpgme.h:45
+ Here is the call graph for this function:
+ Here is the caller graph for this function: