diff options
author | Werner Koch <[email protected]> | 2011-01-31 17:19:14 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2011-01-31 17:19:14 +0000 |
commit | e0d4139e19ceed9375cc7e7ba801a965d3376f7d (patch) | |
tree | fcee0360634211e5568588a8b1c61dffc84beb9e /common/util.h | |
parent | Fixed the ECC interface to Libgcrypt to be ABI compatible with the previous v... (diff) | |
download | gnupg-e0d4139e19ceed9375cc7e7ba801a965d3376f7d.tar.gz gnupg-e0d4139e19ceed9375cc7e7ba801a965d3376f7d.zip |
Move OpenPGP OID helpers to common/.
This is needed so that the agent will be able to export and import
OpenPGP secret keys. Add test case.
Removed unused function.
Diffstat (limited to 'common/util.h')
-rw-r--r-- | common/util.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/common/util.h b/common/util.h index 99d58e172..cf38ad4f8 100644 --- a/common/util.h +++ b/common/util.h @@ -196,7 +196,6 @@ gpg_error_t get_pk_algo_from_canon_sexp (const unsigned char *keydata, int hex2bin (const char *string, void *buffer, size_t length); int hexcolon2bin (const char *string, void *buffer, size_t length); char *bin2hex (const void *buffer, size_t length, char *stringbuf); -char *mpi2hex (gcry_mpi_t m); char *bin2hexcolon (const void *buffer, size_t length, char *stringbuf); const char *hex2str (const char *hexstring, char *buffer, size_t bufsize, size_t *buflen); @@ -210,6 +209,11 @@ char *percent_unescape (const char *string, int nulrepl); size_t percent_plus_unescape_inplace (char *string, int nulrepl); size_t percent_unescape_inplace (char *string, int nulrepl); +/*-- openpgp-oid.c --*/ +gpg_error_t openpgp_oid_from_str (const char *string, gcry_mpi_t *r_mpi); +char *openpgp_oid_to_str (gcry_mpi_t a); + + /*-- homedir.c --*/ const char *standard_homedir (void); |