Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Additional functions #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Additional functions #9

wants to merge 2 commits into from

Conversation

dja852
Copy link

@dja852 dja852 commented Sep 11, 2022

Added the following additional functions:

  • x509_version: returns x509 version number of certificate
  • x509_bcca: checks for Basic Constraints CA extension. Returns TRUE if BC extension present and CA=true, False if BC extension present and CA=false, NULL if Basic Constraints not present
  • x509_keyusage: returns integer value of enabled key usage bits
  • x509_printkeyusage: returns string text of all enabled key usage bits
  • x509_hasExtension_critical: slightly different behaviour than has_extension. This function returns TRUE if extension present AND critical, FALSE if extension present and NOT critical, NULL if extension not present

@dja852 dja852 marked this pull request as ready for review September 11, 2022 01:25
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant