From 320fd5fe62006ebcf9bb30017e3b91be7f21bec4 Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Tue, 3 Apr 2012 14:12:50 +0200 Subject: moved chunk_skip_zero to chunk.h --- src/pki/commands/print.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/pki/commands/print.c') 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 @@ -23,23 +23,6 @@ #include -/** - * 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 */ -- cgit v1.2.3