diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-07-20 22:07:20 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-07-20 22:07:20 +0200 |
commit | 9ec660655aa8ff5b311489082c8482c85895f879 (patch) | |
tree | a8c567479e15b752f79f52647a7bcf7592e18f21 /src/certtool-common.c | |
parent | fc15e91b7bb8cfa4d1744e40a7712d4c457b9a80 (diff) | |
download | gnutls-9ec660655aa8ff5b311489082c8482c85895f879.tar.gz |
Eliminated p11common.c.
Diffstat (limited to 'src/certtool-common.c')
-rw-r--r-- | src/certtool-common.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/src/certtool-common.c b/src/certtool-common.c index 9942da0ca4..3bf6536070 100644 --- a/src/certtool-common.c +++ b/src/certtool-common.c @@ -38,6 +38,7 @@ #include <sys/stat.h> #include <fcntl.h> #include <error.h> +#include <common.h> #include "certtool-common.h" #include "certtool-cfg.h" @@ -716,27 +717,6 @@ print_key_usage (FILE * outfile, unsigned int usage) } } -const char * -raw_to_string (const unsigned char *raw, size_t raw_size) -{ - static char buf[1024]; - size_t i; - if (raw_size == 0) - return NULL; - - if (raw_size * 3 + 1 >= sizeof (buf)) - return NULL; - - for (i = 0; i < raw_size; i++) - { - sprintf (&(buf[i * 3]), "%02X%s", raw[i], - (i == raw_size - 1) ? "" : ":"); - } - buf[sizeof (buf) - 1] = '\0'; - - return buf; -} - void _pubkey_info(FILE* outfile, gnutls_pubkey_t pubkey) { unsigned int usage; |