Signing/encryption multiplexor. More...
#include <stdbool.h>
Go to the source code of this file.
Functions | |
void | crypt_convert_to_7bit (struct Body *b) |
Convert an email to 7bit encoding. | |
void | crypt_current_time (struct State *state, const char *app_name) |
Print the current time. | |
const char * | crypt_get_fingerprint_or_id (const char *p, const char **pphint, const char **ppl, const char **pps) |
Get the fingerprint or long key ID. | |
bool | crypt_is_numerical_keyid (const char *s) |
Is this a numerical keyid. | |
int | crypt_write_signed (struct Body *b, struct State *state, const char *tempfile) |
Write the message body/part. | |
Signing/encryption multiplexor.
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 crypt.h.
void crypt_convert_to_7bit | ( | struct Body * | b | ) |
Convert an email to 7bit encoding.
b | Body of email to convert |
Definition at line 809 of file crypt.c.
void crypt_current_time | ( | struct State * | state, |
const char * | app_name | ||
) |
Print the current time.
state | State to use |
app_name | App name, e.g. "PGP" |
print the current time to avoid spoofing of the signature output
Definition at line 65 of file crypt.c.
const char * crypt_get_fingerprint_or_id | ( | const char * | p, |
const char ** | pphint, | ||
const char ** | ppl, | ||
const char ** | pps | ||
) |
Get the fingerprint or long key ID.
[in] | p | String to examine |
[out] | pphint | Start of string to be passed to pgp_add_string_to_hints() or crypt_add_string_to_hints() |
[out] | ppl | Start of long key ID if detected, else NULL |
[out] | pps | Start of short key ID if detected, else NULL |
ptr | Copy of fingerprint, if any, stripped of all spaces. Must be FREE'd by caller |
NULL | Otherwise |
Obtain pointers to fingerprint or short or long key ID, if any.
Upon return, at most one of return, *ppl and *pps pointers is non-NULL, indicating the longest fingerprint or ID found, if any.
Definition at line 1380 of file crypt.c.
bool crypt_is_numerical_keyid | ( | const char * | s | ) |
Is this a numerical keyid.
s | Key to test |
true | Keyid is numeric |
Check if a crypt-hook value is a key id.
Definition at line 1469 of file crypt.c.
Write the message body/part.
0 | Success |
-1 | Error |
Body/part A described by state state to the given TEMPFILE.
Definition at line 759 of file crypt.c.