Skip to content

Update dependencies to latest versions and adjust the code accordingly - #4

Merged
blind-oracle merged 2 commits into
blind-oracle:mainfrom
DorianNiemiecSVRJS:main
Dec 21, 2025
Merged

blind-oracle merged 2 commits into
blind-oracle:mainfrom
DorianNiemiecSVRJS:main

Conversation

@DorianNiemiecSVRJS

Copy link
Copy Markdown
Contributor

This PR updates dependencies to latest versions, and adjusts the code to compile correctly with the updated dependencies

Updated dependencies

  • hex-literal (dev)
  • rasn
  • rasn-ocsp
  • rasn-pkix
  • x509-parser

Additional note

I had to change the tests/ocsp_request.bin file for testing OCSP, since DER encoding function from rasn crate produced different results for the older version and the latest version.

Decoded ASN data from the older version of rasn crate:

U.P.SEQUENCE {
   U.P.SEQUENCE {
      [C.P.0] {
         U.P.INTEGER 0x00 (0 decimal)
      }
      U.P.SEQUENCE {
         U.P.SEQUENCE {
            U.P.SEQUENCE {
               U.P.SEQUENCE {
                  U.P.OBJECTIDENTIFIER 1.3.14.3.2.26 (sha1)
               }
               U.P.OCTETSTRING 36175faa02c887bdd95ca13549512d1e97fadfa9
               U.P.OCTETSTRING 6691287b8d8654baf6203197aec491e9afb70bcb
               U.P.INTEGER 0x2bd751263b84e5e6eef9c6fb837fe02432ae
            }
         }
      }
   }
}

Decoded ASN data from the newest version of rasn crate:

U.P.SEQUENCE {
   U.P.SEQUENCE {
      U.P.SEQUENCE {
         U.P.SEQUENCE {
            U.P.SEQUENCE {
               U.P.SEQUENCE {
                  U.P.OBJECTIDENTIFIER 1.3.14.3.2.26 (sha1)
               }
               U.P.OCTETSTRING 36175faa02c887bdd95ca13549512d1e97fadfa9
               U.P.OCTETSTRING 6691287b8d8654baf6203197aec491e9afb70bcb
               U.P.INTEGER 0x2bd751263b84e5e6eef9c6fb837fe02432ae
            }
         }
      }
   }
}

@blind-oracle

Copy link
Copy Markdown
Owner

Thanks! I'll publish a crates release

@blind-oracle
blind-oracle merged commit 965965d into blind-oracle:main Dec 21, 2025
1 check passed
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.

2 participants