diff options
author | Jameson Graef Rollins <jrollins@phys.columbia.edu> | 2008-05-03 11:36:44 -0400 |
---|---|---|
committer | Jameson Graef Rollins <jrollins@phys.columbia.edu> | 2008-05-03 11:36:44 -0400 |
commit | 7970ab05408ec48ffde9bffddb451a8e49ef6fa6 (patch) | |
tree | 7a35f9c1051aad9ef717fe5bb003523f8a56713a /gnutls-helpers.h | |
parent | 97429d91d8b9e69756efac3a28105535807221f3 (diff) | |
parent | c83951904066fedc425b82ea4dbf6cab64db7cd6 (diff) |
Merge commit 'dkg/master'
Diffstat (limited to 'gnutls-helpers.h')
-rw-r--r-- | gnutls-helpers.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gnutls-helpers.h b/gnutls-helpers.h index 398413f..9ea22a3 100644 --- a/gnutls-helpers.h +++ b/gnutls-helpers.h @@ -54,7 +54,7 @@ int set_datum_string(gnutls_datum_t* d, const char* s); datum */ int set_datum_fd(gnutls_datum_t* d, int fd); -/* read the file indicated (by na1me) in the fname parameter. store +/* read the file indicated (by name) in the fname parameter. store its entire contents in a single datum. */ int set_datum_file(gnutls_datum_t* d, const char* fname); @@ -64,3 +64,9 @@ int create_writing_pipe(pid_t* pid, const char* path, char* const argv[]); /* return 0 if userid matches the monkeysphere spec for ssh host user IDs */ int validate_ssh_host_userid(const char* userid); + +/* how many bytes will it take to write out this datum in OpenPGP MPI form? */ +size_t get_openpgp_mpi_size(gnutls_datum_t* d); + +/* write the MPI stored in gnutls_datum_t to file descriptor fd: */ +int write_openpgp_mpi_to_fd(int fd, gnutls_datum_t* d); |