Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add misc. x509 un/lock and set1 functions #1449

Merged
merged 12 commits into from
Mar 1, 2024

Commits on Feb 29, 2024

  1. Add misc. x509 un/lock and set1 functions

    The set1 functions are cribbed from [OpenSSL's implementation][1], but
    notably differ in that we don't free the `X509_OBJECT`. This is pursuant
    to OpenSSL's [own convention][2] around "set1" functions:
    
    > In the 1 version the ownership of the object is not passed to or
    > retained by the parent object. Instead a copy or "up ref" of the
    > object is performed.
    
    OpenSSL [frees][3] the input `X509_OBJECT`; we do not.
    
    [1]: https://github.com/openssl/openssl/blob/4a6f70c03182b421d326831532edca32bcdb3fb1/crypto/x509/x509_lu.c#L506
    [2]: https://www.openssl.org/docs/man3.2/man7/ossl-guide-libraries-introduction.html
    [3]: https://github.com/openssl/openssl/blob/4a6f70c03182b421d326831532edca32bcdb3fb1/crypto/x509/x509_lu.c#L511
    WillChilds-Klein committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    21185a7 View commit details
    Browse the repository at this point in the history
  2. Remove random jitter to appease MacOS in CI

    This commit was made because the MacOS CI jobs [seem to have taken
    issue][1] with how we were doing things previously.
    
    [1]: https://github.com/aws/aws-lc/actions/runs/8014000000/job/21891957419?pr=1449
    WillChilds-Klein committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    a78d8d6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    066ef05 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d31763a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6f23cea View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2da663d View commit details
    Browse the repository at this point in the history
  7. Update crypto/x509/x509_test.cc

    Co-authored-by: Andrew Hopkins <andhop@amazon.com>
    WillChilds-Klein and andrewhop committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    ac55b54 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    269f97b View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c259e0d View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    6568311 View commit details
    Browse the repository at this point in the history
  11. Clarify doc comment

    WillChilds-Klein committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    34f7a30 View commit details
    Browse the repository at this point in the history
  12. Fix doc comment

    WillChilds-Klein committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    0a4161a View commit details
    Browse the repository at this point in the history