[Bugzilla](https://bugzilla.redhat.com/buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&bug_status=MODIFIED&bug_status=VERIFIED&component=createrepo_c&query_format=advanced)
+### Important notes
+
+In original createrepo ``sha`` is a nickname for the ``sha1`` checksum.
+Createrepo_c mimics this behaviour.
+
---------------------------------------------------
# Differences in behavior between createrepo_c and createrepo
switch (type) {
//case CR_CHECKSUM_MD2: ctx_type = EVP_md2(); break;
case CR_CHECKSUM_MD5: ctx_type = EVP_md5(); break;
- case CR_CHECKSUM_SHA: ctx_type = EVP_sha(); break;
+ case CR_CHECKSUM_SHA: ctx_type = EVP_sha1(); break;
case CR_CHECKSUM_SHA1: ctx_type = EVP_sha1(); break;
case CR_CHECKSUM_SHA224: ctx_type = EVP_sha224(); break;
case CR_CHECKSUM_SHA256: ctx_type = EVP_sha256(); break;
switch (type) {
//case CR_CHECKSUM_MD2: ctx_type = EVP_md2(); break;
case CR_CHECKSUM_MD5: ctx_type = EVP_md5(); break;
- case CR_CHECKSUM_SHA: ctx_type = EVP_sha(); break;
+ case CR_CHECKSUM_SHA: ctx_type = EVP_sha1(); break;
case CR_CHECKSUM_SHA1: ctx_type = EVP_sha1(); break;
case CR_CHECKSUM_SHA224: ctx_type = EVP_sha224(); break;
case CR_CHECKSUM_SHA256: ctx_type = EVP_sha256(); break;
/**
* Enum of supported checksum types.
+ * Note: SHA is just a "nickname" for the SHA1. This
+ * is for the compatibility with original createrepo.
*/
typedef enum {
CR_CHECKSUM_UNKNOWN, /*!< Unknown checksum */