summaryrefslogtreecommitdiff
path: root/src/apk_blob.h
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-07-15 14:48:57 +0300
committerTimo Teras <timo.teras@iki.fi>2009-07-15 14:48:57 +0300
commita7c5fda40ac76c4a43af7a4ee5241514f890a2ee (patch)
tree0e7bec51c3b7e5e16fc805bc885e348c78e5404e /src/apk_blob.h
parentbfabf8f8d966ab8305212b9730db8fc5eb5e1094 (diff)
downloadapk-tools-a7c5fda40ac76c4a43af7a4ee5241514f890a2ee.tar.gz
apk-tools-a7c5fda40ac76c4a43af7a4ee5241514f890a2ee.tar.bz2
apk-tools-a7c5fda40ac76c4a43af7a4ee5241514f890a2ee.tar.xz
apk-tools-a7c5fda40ac76c4a43af7a4ee5241514f890a2ee.zip
blob: base64 encoding and decoding
and prefer sha1 checksums to be stored in base64 encoded format.
Diffstat (limited to 'src/apk_blob.h')
-rw-r--r--src/apk_blob.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/apk_blob.h b/src/apk_blob.h
index 170cf20..398056a 100644
--- a/src/apk_blob.h
+++ b/src/apk_blob.h
@@ -92,11 +92,13 @@ static inline const int apk_checksum_compare(const struct apk_checksum *a,
void apk_blob_push_blob(apk_blob_t *to, apk_blob_t literal);
void apk_blob_push_uint(apk_blob_t *to, unsigned int value, int radix);
void apk_blob_push_csum(apk_blob_t *to, struct apk_checksum *csum);
+void apk_blob_push_base64(apk_blob_t *to, apk_blob_t binary);
void apk_blob_push_hexdump(apk_blob_t *to, apk_blob_t binary);
void apk_blob_pull_char(apk_blob_t *b, int expected);
unsigned int apk_blob_pull_uint(apk_blob_t *b, int radix);
void apk_blob_pull_csum(apk_blob_t *b, struct apk_checksum *csum);
+void apk_blob_pull_base64(apk_blob_t *b, apk_blob_t to);
void apk_blob_pull_hexdump(apk_blob_t *b, apk_blob_t to);
#endif