diff options
author | Michael Schroeder <mls@suse.de> | 2014-04-04 16:18:06 +0200 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2014-04-04 16:18:06 +0200 |
commit | c8164bfecf2ba8bcf4c24329534d3104f19da73c (patch) | |
tree | 8063c2f9807984df9b17a0489661a09db456d86a /tools | |
parent | fdff34f4855b84438b5bff3f79cba33d6bf35865 (diff) | |
download | libsolv-c8164bfecf2ba8bcf4c24329534d3104f19da73c.tar.gz libsolv-c8164bfecf2ba8bcf4c24329534d3104f19da73c.tar.bz2 libsolv-c8164bfecf2ba8bcf4c24329534d3104f19da73c.zip |
[ABI BREAKAGE] add support for SHA224/384/512
We also use this to reorder knownid.h, thus breaking
the libsolv ABI. Next step is to bump the version.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/dumpsolv.c | 6 | ||||
-rw-r--r-- | tools/repomdxml2solv.c | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/tools/dumpsolv.c b/tools/dumpsolv.c index aebcf4b..db2ce94 100644 --- a/tools/dumpsolv.c +++ b/tools/dumpsolv.c @@ -52,7 +52,10 @@ dump_attr(Repo *repo, Repodata *data, Repokey *key, KeyValue *kv) break; case REPOKEY_TYPE_MD5: case REPOKEY_TYPE_SHA1: + case REPOKEY_TYPE_SHA224: case REPOKEY_TYPE_SHA256: + case REPOKEY_TYPE_SHA384: + case REPOKEY_TYPE_SHA512: printf("%s: %s (%s)\n", keyname, repodata_chk2str(data, key->type, (unsigned char *)kv->str), pool_id2str(repo->pool, key->type)); break; case REPOKEY_TYPE_VOID: @@ -223,7 +226,10 @@ dump_attr_json(Repo *repo, Repodata *data, Repokey *key, KeyValue *kv, struct cb break; case REPOKEY_TYPE_MD5: case REPOKEY_TYPE_SHA1: + case REPOKEY_TYPE_SHA224: case REPOKEY_TYPE_SHA256: + case REPOKEY_TYPE_SHA384: + case REPOKEY_TYPE_SHA512: printf("{\n"); printf("%*s \"value\": %s,\n", indent, "", jsonstring(pool, repodata_chk2str(data, key->type, (unsigned char *)kv->str))); printf("%*s \"type\": %s\n", indent, "", jsonstring(pool, pool_id2str(repo->pool, key->type))); diff --git a/tools/repomdxml2solv.c b/tools/repomdxml2solv.c index 58b1d00..4bd131c 100644 --- a/tools/repomdxml2solv.c +++ b/tools/repomdxml2solv.c @@ -78,7 +78,10 @@ doquery(Pool *pool, Repo *repo, const char *query) break; case REPOKEY_TYPE_MD5: case REPOKEY_TYPE_SHA1: + case REPOKEY_TYPE_SHA224: case REPOKEY_TYPE_SHA256: + case REPOKEY_TYPE_SHA384: + case REPOKEY_TYPE_SHA512: printf("%s:%s\n", solv_chksum_type2str(di.key->type), repodata_chk2str(di.data, di.key->type, (unsigned char *)di.kv.str)); break; default: |