Skip to content

WIP: Add the STORE module, for loaded certs and keys (and more?) given a URI#1962

Closed
levitte wants to merge 6 commits intoopenssl:masterfrom
levitte:store
Closed

WIP: Add the STORE module, for loaded certs and keys (and more?) given a URI#1962
levitte wants to merge 6 commits intoopenssl:masterfrom
levitte:store

Conversation

@levitte
Copy link
Member

@levitte levitte commented Nov 19, 2016

Checklist
  • documentation is added or updated
  • tests are added or updated
  • CLA is signed
Description of change

This STORE module adds the following functionality:

  • A function STORE_load() that loads a bunch of choice objects (*) given a URI.
  • An opaque type STORE_INFO that holds information on each loaded object.
  • A few functions to retrieve desired data from a STORE_INFO reference.
  • Functions to register and unregister loaders for different URI schemes. This enables dynamic addition of loaders from applications or from engines.

Also includes a loader for the "file" scheme. The goal is to have it load PEM files and raw DER files alike, transparently.

Note that although this branch isn't made on top of #1961, it does depend on the functionality from that branch to actually build. As soon as #1961 is merged into master, this branch will be rebased on top of that.

Fixes #1958, #1959

@levitte levitte added the branch: master Applies to master branch label Nov 19, 2016
@levitte levitte added this to the 1.1.1 milestone Nov 19, 2016
@levitte levitte changed the title WIP: Add the STORE module, for loaded certs and keys (and more?) given a URI Add the STORE module, for loaded certs and keys (and more?) given a URI Nov 19, 2016
This STORE module adds the following functionality:

- A function STORE_load() that loads a bunch of choice objects (*)
  given a URI.
- An opaque type STORE_INFO that holds information on each loaded
  object.
- A few functions to retrieve desired data from a STORE_INFO
  reference.
- Functions to register and unregister loaders for different URI
  schemes.  This enables dynamic addition of loaders from applications
  or from engines.
This is needed for the upcoming "file" scheme STORE loader.
This is needed for the upcoming "file" scheme STORE loader.
This command can be used to view the contents of any supported type of
information fetched from a URI, and output them in PEM format.
@levitte levitte self-assigned this Nov 21, 2016
@levitte levitte changed the title Add the STORE module, for loaded certs and keys (and more?) given a URI WIP: Add the STORE module, for loaded certs and keys (and more?) given a URI Nov 24, 2016
@levitte
Copy link
Member Author

levitte commented Nov 24, 2016

FYI, some input I got on openssl-dev has given me cause to think of a re-design of loading itself. Rather than one big STORE_load(), I'm thinking of a STORE_open_uri(), a STORE_read_uri() that reads just one piece of information at a time (thereby returning a STORE_INFO rather than a whole stack of them) and so on, all if it governed with a context variable.

Stay tuned.

@levitte
Copy link
Member Author

levitte commented Nov 28, 2016

Closing in favor of #2011

@levitte levitte closed this Nov 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

branch: master Applies to master branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

STORE core library

1 participant