$Revision: 1.38 $
gpg.c - core of the PA module. Contains functions that are used to check the PGP authentication in a message.
Status: COMPLETE, REVUED, TESTED
EP_outputPrefix
extern char EP_outputPrefix[1024]
Defined in: | ep/mail_parser.c |
EP_keyRing
extern char EP_keyRing[1024]
Defined in: | ep/mail_parser.c |
EP_gpgcmd
extern char EP_gpgcmd[1024]
Defined in: | ep/mail_parser.c |
EP_TreeHeight
extern int EP_TreeHeight
Defined in: | ep/mail_parser.c |
EP_Node_ID
extern int EP_Node_ID
Defined in: | ep/mail_parser.c |
Defined in: | ep/mail_parser.c |
Get the fingerprint of a PGP key.void GetFingerPrint ( struct ImportKeyObject* iKO )
ImportKeyObject *iKO The imported key object
Prototyped in: | /home/shane/code/RIP/include/gpg.h | |
Calls: | ER_perror() | er/er.c |
___errno(), exit(), fdopen(), fdwrap_close(), fgets(), spawn_job(), sprintf(), sscanf(), strcpy(), strerror(), strlen(), strstr(), waitpid() | ||
Called by: | PA_ImportKey() | pa/gpg.c |
References Variables: | EP_gpgcmd | ep/mail_parser.c |
sd1 |
Get the KeyID of a PGP key.void GetKeyID ( struct ImportKeyObject* iKO )
Prototyped in: | pa/gpg.c | |
Calls: | ER_perror() | er/er.c |
___errno(), exit(), fdopen(), fdwrap_close(), fgets(), nfslock(), nfsunlock(), spawn_job(), sscanf(), strcpy(), strerror(), strrchr(), strstr(), waitpid() | ||
Called by: | PA_RemoveKey() | pa/gpg.c |
References Variables: | EP_gpgcmd | ep/mail_parser.c |
sd1 |
Get the owner of a PGP key.void GetKeyOwner ( struct ImportKeyObject* iKO )
ImportKeyObject *iKO The imported key object
Prototyped in: | /home/shane/code/RIP/include/gpg.h | |
Calls: | ER_perror() | er/er.c |
___errno(), exit(), fdopen(), fdwrap_close(), fgets(), spawn_job(), sprintf(), sscanf(), strcpy(), strerror(), strlen(), strstr(), waitpid() | ||
Called by: | PA_ImportKey() | pa/gpg.c |
References Variables: | EP_gpgcmd | ep/mail_parser.c |
sd1 |
Decrypt a PGP-encrypted file.void PA_Decrypt ( struct ReadCryptedObject* rDO )
Note: This functions is not used by PA/EP/MM It can be useful in the future.... (FP)
Prototyped in: | /home/shane/code/RIP/include/gpg.h | |
Calls: | ER_perror() | er/er.c |
___errno(), exit(), fdwrap_close(), fgets(), spawn_job(), strcat(), strcpy(), strerror(), waitpid() | ||
References Variables: | EP_gpgcmd | ep/mail_parser.c |
sd1 |
Import a PGP key.void PA_ImportKey ( struct ImportKeyObject* iKO )
Prototyped in: | /home/shane/code/RIP/include/gpg.h | |
Calls: | ER_perror() | er/er.c |
GetFingerPrint() | pa/gpg.c | |
GetKeyOwner() | pa/gpg.c | |
PA_RemoveKey_withKeyID() | pa/gpg.c | |
___errno(), exit(), fdopen(), fdwrap_close(), fgets(), g_list_append(), nfslock(), nfsunlock(), spawn_job(), sscanf(), strcpy(), strerror(), strrchr(), strstr(), waitpid() | ||
References Variables: | EP_gpgcmd | ep/mail_parser.c |
sd1 |
Parse a file and look for PGP-signed elements inside.EPNodePtr PA_ParseMessage ( EPNodePtr ptr )
Prototyped in: | /home/shane/code/RIP/include/gpg.h | |
Calls: | EP_DefineNewNode() | ep/mail_parser.c |
EP_MIMEParse() | ep/mail_parser.c | |
ER_dbg_va() | er/er.c | |
PA_ParseMessage() | pa/gpg.c | |
VerifySignAndExplodeFile() | pa/gpg.c | |
fdwrap_fclose(), fgets(), fopen(), fputs(), strstr() | ||
Called by: | EP_MIMEParse() | ep/mail_parser.c |
EP_ParseText() | ep/mail_parser.c | |
PA_ParseMessage() | pa/gpg.c | |
parse_text_plain() | mm/mm.c | |
References Variables: | EP_Node_ID | ep/mail_parser.c |
EP_outputPrefix | ep/mail_parser.c |
Remove a PGP key.void PA_RemoveKey ( struct ImportKeyObject* iKO )
Prototyped in: | /home/shane/code/RIP/include/gpg.h | |
Calls: | ER_perror() | er/er.c |
GetKeyID() | pa/gpg.c | |
___errno(), exit(), fdopen(), fdwrap_close(), fgets(), nfslock(), nfsunlock(), spawn_job(), sprintf(), strcpy(), strerror(), strrchr(), strstr(), waitpid() | ||
References Variables: | EP_gpgcmd | ep/mail_parser.c |
sd1 |
Remove a PGP key, using its KeyID (otherwise it's the same as PA_RemoveKeyvoid PA_RemoveKey_withKeyID ( struct ImportKeyObject* iKO )
Prototyped in: | /home/shane/code/RIP/include/gpg.h | |
Calls: | ER_perror() | er/er.c |
___errno(), exit(), fdopen(), fdwrap_close(), fgets(), nfslock(), nfsunlock(), spawn_job(), sprintf(), strcpy(), strerror(), strrchr(), strstr(), waitpid() | ||
Called by: | PA_ImportKey() | pa/gpg.c |
References Variables: | EP_gpgcmd | ep/mail_parser.c |
sd1 |
Verify a detached PGP signature.void PA_VerifySignature ( struct VerifySignObject* vSO )
Prototyped in: | /home/shane/code/RIP/include/gpg.h | |
Calls: | ER_perror() | er/er.c |
___errno(), exit(), fdwrap_close(), fgets(), mkstemp(), open(), read(), spawn_job(), sprintf(), sscanf(), strcat(), strcmp(), strcpy(), strerror(), strstr(), unlink(), waitpid(), write() | ||
Called by: | parse_multipart_signed() | mm/mm.c |
References Variables: | EP_gpgcmd | ep/mail_parser.c |
sd1, tmpdir |
Verify the PGP signature and extract the signed part in a file.void VerifySignAndExplodeFile ( EPNodePtr ptr )
Prototyped in: | pa/gpg.c | |
Calls: | ER_perror() | er/er.c |
UT_free_real(), UT_strdup_real(), ___errno(), exit(), fdwrap_close(), fgets(), spawn_job(), sprintf(), sscanf(), strcpy(), strerror(), strstr(), unlink(), waitpid() | ||
Called by: | PA_ParseMessage() | pa/gpg.c |
References Variables: | EP_gpgcmd | ep/mail_parser.c |
EP_keyRing | ep/mail_parser.c | |
sd1 |
Included from: | /usr/include/time.h | |
Calls: | __posix_asctime_r() |
Included from: | /usr/include/time.h | |
Calls: | __posix_ctime_r() |
Included from: | /usr/include/unistd.h | |
Calls: | __posix_getlogin_r() |
Included from: | /usr/include/dirent.h | |
Calls: | __posix_readdir_r() |
Included from: | /usr/include/signal.h | |
Calls: | __posix_sigwait() |
Included from: | /usr/include/unistd.h | |
Calls: | __posix_ttyname_r() |