-
Notifications
You must be signed in to change notification settings - Fork 172
[WIP] Add x509-ext crate #389
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
Closed
Closed
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
3328fa4
Add x509-ext crate
npmccallum 831347a
Move `Extension`/`Extensions` to `x509-ext`
npmccallum 675ec4b
Drop default_false()
npmccallum b937542
x509-ext: add DirectoryString
npmccallum 575fa19
x509-ext: add EdiPartyName
npmccallum 5b174c8
x509-ext: add OtherName
npmccallum 31f882a
x509-ext: add GeneralName and GeneralNames
npmccallum 7f45850
const-oid: add the Typed trait
npmccallum 78b180d
x509-ext: add AuthorityKeyIdentifier
npmccallum 26c575f
x509-ext: add SubjectKeyIdentifier
npmccallum a1b9f69
der: add support for FlagSet types
npmccallum 27a8786
x509-ext: add KeyUsage
npmccallum File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| name: x509-ext | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - "const-oid/**" | ||
| - "der/**" | ||
| - "x509-ext/**" | ||
| - "Cargo.*" | ||
| push: | ||
| branches: master | ||
|
|
||
| defaults: | ||
| run: | ||
| working-directory: x509-ext | ||
|
|
||
| env: | ||
| CARGO_INCREMENTAL: 0 | ||
| RUSTFLAGS: "-Dwarnings" | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| rust: | ||
| - 1.57.0 # MSRV | ||
| - stable | ||
| target: | ||
| - thumbv7em-none-eabi | ||
| - wasm32-unknown-unknown | ||
| steps: | ||
| - uses: actions/checkout@v1 | ||
| - uses: actions-rs/toolchain@v1 | ||
| with: | ||
| profile: minimal | ||
| toolchain: ${{ matrix.rust }} | ||
| target: ${{ matrix.target }} | ||
| override: true | ||
| - run: cargo install cargo-hack | ||
| - run: cargo hack build --release --target ${{ matrix.target }} --feature-powerset --exclude-features std | ||
|
|
||
| test: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| rust: | ||
| - 1.57.0 # MSRV | ||
| - stable | ||
| steps: | ||
| - uses: actions/checkout@v1 | ||
| - uses: actions-rs/toolchain@v1 | ||
| with: | ||
| profile: minimal | ||
| toolchain: ${{ matrix.rust }} | ||
| override: true | ||
| - run: cargo install cargo-hack | ||
| - run: cargo hack test --release --feature-powerset |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,5 +20,6 @@ members = [ | |
| "tls_codec", | ||
| "tls_codec/derive", | ||
| "x501", | ||
| "x509" | ||
| "x509", | ||
| "x509-ext" | ||
| ] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # Changelog | ||
| All notable changes to this project will be documented in this file. | ||
|
|
||
| The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
| and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| [package] | ||
| name = "x509-ext" | ||
| version = "0.1.0" # Also update html_root_url in lib.rs when bumping this | ||
| edition = "2021" | ||
| description = "Pure Rust implementation X.509 Extensions" | ||
| authors = ["RustCrypto Developers"] | ||
| license = "Apache-2.0 OR MIT" | ||
| repository = "https://github.com/RustCrypto/formats/tree/master/x509-ext" | ||
| categories = ["cryptography", "data-structures", "encoding", "no-std"] | ||
| keywords = ["crypto", "X.509", "extensions"] | ||
| readme = "README.md" | ||
| rust-version = "1.56" | ||
|
|
||
| [dev-dependencies] | ||
| hex-literal = "^0.3.4" | ||
| rstest = "^0.12.0" | ||
|
|
||
| [dependencies] | ||
| der = { version = "=0.6.0-pre.1", features = ["derive", "alloc", "oid", "flagset"], path = "../der" } | ||
| const-oid = { version = "=0.8.0", path = "../const-oid" } | ||
| x501 = { version = "=0.1.0-pre.0", path = "../x501" } | ||
| flagset = "^0.4.2" | ||
|
|
||
| [features] | ||
| std = ["der/std"] | ||
|
|
||
| [package.metadata.docs.rs] | ||
| all-features = true | ||
| rustdoc-args = ["--cfg", "docsrs"] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could probably use a more descriptive name, but I'm having trouble thinking of a good one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about
OidValue?