diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2012-04-03 14:12:50 +0200 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2012-04-03 14:12:50 +0200 |
commit | 320fd5fe62006ebcf9bb30017e3b91be7f21bec4 (patch) | |
tree | b5c9fb1edd1359f1dbb7c777ae3de88f890768c8 /src/pki | |
parent | 4e5b7e09ee0ca3034087d832f609389db427f6c6 (diff) | |
download | strongswan-320fd5fe62006ebcf9bb30017e3b91be7f21bec4.tar.bz2 strongswan-320fd5fe62006ebcf9bb30017e3b91be7f21bec4.tar.xz |
moved chunk_skip_zero to chunk.h
Diffstat (limited to 'src/pki')
-rw-r--r-- | src/pki/commands/print.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/pki/commands/print.c b/src/pki/commands/print.c index 02d0cec17..a7f02bfac 100644 --- a/src/pki/commands/print.c +++ b/src/pki/commands/print.c @@ -24,23 +24,6 @@ #include <time.h> /** - * Print a chunk without leading zero byte - */ -static chunk_t chunk_skip_zero(chunk_t chunk) -{ - if (chunk.len && *chunk.ptr == 0x00) - { - if (chunk.len == 1) - { - return chunk_empty; - } - chunk.ptr++; - chunk.len--; - } - return chunk; -} - -/** * Print public key information */ static void print_pubkey(public_key_t *key) |