Changeset a4ac9c4 for lib/sha1.c


Ignore:
Timestamp:
2023-04-01T20:09:39Z (13 months ago)
Author:
GitHub <noreply@…>
Branches:
master
Children:
552da22
Parents:
59c9fa4d
git-author:
Jelmer Vernooij <jelmer@…> (01-04-23 20:09:39)
git-committer:
GitHub <noreply@…> (01-04-23 20:09:39)
Message:

Deprecate sha1_* functions (#172)

  • Migrate sha1 calls to direct use of GChecksum
  • Mark sha1.h functions as deprecated
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/sha1.c

    r59c9fa4d ra4ac9c4  
    100100        char *ret = g_new0(char, 40);   /* 36 chars + \0 */
    101101        int i, p;
     102        gsize digest_len = SHA1_HASH_SIZE;
    102103
    103         sha1_finish(context, dig);
     104        g_checksum_get_digest(*context, dig, &digest_len);
     105        g_checksum_free(*context);
     106
    104107        for (p = i = 0; i < 16; i++) {
    105108                if (i == 4 || i == 6 || i == 8 || i == 10) {
Note: See TracChangeset for help on using the changeset viewer.