Skip to content

Conversation

Duncaen
Copy link
Member

@Duncaen Duncaen commented Jun 4, 2025

  • modernize code with good error messages.
  • do not use mmap to read 512 byte signature files.
  • preparing for swappable signature algorithms
  • remove usage of deprecated openssl functions
  • open public key when opening repo to avoid reading it every time its needed

Duncaen added 2 commits June 5, 2025 00:12
- modernize code with good error messages.
- do not use mmap to read 512 byte signature files.
- preparing for swappable signature algorithms
- remove usage of deprecated openssl functions
- open public key when opening repo to avoid reading it every time its needed
Comment on lines +118 to +124
switch (pubkey->type) {
case PUBKEY_RSA:
rsa = (struct pubkey_rsa *)pubkey;
EVP_PKEY_free(rsa->pkey);
free(rsa);
break;
}

Check notice

Code scanning / CodeQL

No trivial switch statements Note

This switch statement should either handle more cases, or be rewritten as an if statement.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant