Skip to content

Make diverses default directories more available - #8709

Closed
levitte wants to merge 7 commits into
openssl:masterfrom
levitte:display-modules-dir
Closed

levitte wants to merge 7 commits into
openssl:masterfrom
levitte:display-modules-dir

Conversation

@levitte

@levitte levitte commented Apr 9, 2019 •

Copy link
Copy Markdown
Member

Add the possibility to display and use MODULESDIR

This adds the flag OPENSSL_MODULES_DIR for OpenSSL_version(), and the
flag '-m' for 'openssl version'.

Add a way for the application to get OpenSSL configuration data

OpenSSL_version(OPENSSL_DIR) gives you a nicely formatted string for
display, but if all you really want is the directory itself, you were
forced to parsed the string.

This introduces a new function to get diverse configuration data from
the library, OPENSSL_info(). This works the same way as
OpenSSL_version(), but has its own series of types, currently
including:

OPENSSL_INFO_CONFIG_DIR returns OPENSSLDIR
OPENSSL_INFO_ENGINES_DIR returns ENGINESDIR
OPENSSL_INFO_MODULES_DIR returns MODULESDIR
OPENSSL_INFO_DSO_EXTENSION returns DSO_EXTENSION

For scripting purposes, this also adds the command 'openssl info'.

@levitte levitte added the branch: master Applies to master branch label Apr 9, 2019
@levitte

levitte commented Apr 9, 2019

Copy link
Copy Markdown
Member Author

This might for example be useful for @slontis' effort with FIPS module installation and testing.

@levitte levitte mentioned this pull request Apr 10, 2019
2 tasks
@levitte

levitte commented Apr 10, 2019

Copy link
Copy Markdown
Member Author

Hold on, I'm going to rework this one a bit.

@levitte
levitte force-pushed the display-modules-dir branch from ae96900 to e407e82 Compare April 10, 2019 08:14
@levitte

levitte commented Apr 10, 2019

Copy link
Copy Markdown
Member Author

Rework done.

Comment thread CHANGES Resolved
@richsalz

Copy link
Copy Markdown
Contributor

Use a dash, "built-in" when it is an adjective like "built-in data"

Less helpfully, do not use a dash when it is a verb, as in "built in the factory"

@levitte
levitte force-pushed the display-modules-dir branch from 919973b to e7f9c7c Compare April 11, 2019 14:58
@levitte

levitte commented Apr 11, 2019

Copy link
Copy Markdown
Member Author

Rebased because util/libcrypto.num.

Final review, anyone?

levitte added 6 commits April 18, 2019 18:47
This adds the flag OPENSSL_MODULES_DIR for OpenSSL_version(), and the
flag '-m' for 'openssl version'.
OpenSSL_version(OPENSSL_DIR) gives you a nicely formatted string for
display, but if all you really want is the directory itself, you were
forced to parsed the string.

This introduces a new function to get diverse configuration data from
the library, OPENSSL_info().  This works the same way as
OpenSSL_version(), but has its own series of types, currently
including:

OPENSSL_INFO_CONFIG_DIR         returns OPENSSLDIR
OPENSSL_INFO_ENGINES_DIR        returns ENGINESDIR
OPENSSL_INFO_MODULES_DIR        returns MODULESDIR
OPENSSL_INFO_DSO_EXTENSION      returns DSO_EXTENSION

For scripting purposes, this also adds the command 'openssl info'.
Additionally:

OPENSSL_INFO_DIR_FILENAME_SEPARATOR     returns directory/filename separator
OPENSSL_INFO_LIST_SEPARATOR             returns list separator
Including the implementation does help a bit, yeah?  ;-)
@levitte
levitte force-pushed the display-modules-dir branch from e7f9c7c to 3c2be18 Compare April 18, 2019 16:47
@levitte

levitte commented Apr 18, 2019

Copy link
Copy Markdown
Member Author

Ping?

@mattcaswell mattcaswell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not really sure why we need a new command line app for this?

Comment thread doc/man1/info.pod Outdated

=head1 DESCRIPTION

This command is used to print out info information about OpenSSL.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

info information?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, exactly. It's info about the information that you will eventually...

... nah, kidding, will fix.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ended up adding a bit more

@levitte

levitte commented Apr 23, 2019

Copy link
Copy Markdown
Member Author

Ping?

@paulidale paulidale left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@paulidale

Copy link
Copy Markdown
Contributor

After the conflicts are resolved.

@levitte

levitte commented Apr 23, 2019

Copy link
Copy Markdown
Member Author

Merged with ordinal fixup.

0109e03 Add a way for the application to get OpenSSL configuration data
47ca833 Add the possibility to display and use MODULESDIR

@levitte levitte closed this Apr 23, 2019
levitte added a commit that referenced this pull request Apr 23, 2019
This adds the flag OPENSSL_MODULES_DIR for OpenSSL_version(), and the
flag '-m' for 'openssl version'.

Reviewed-by: Paul Dale <[email protected]>
(Merged from #8709)
levitte added a commit that referenced this pull request Apr 23, 2019
OpenSSL_version(OPENSSL_DIR) gives you a nicely formatted string for
display, but if all you really want is the directory itself, you were
forced to parsed the string.

This introduces a new function to get diverse configuration data from
the library, OPENSSL_info().  This works the same way as
OpenSSL_version(), but has its own series of types, currently
including:

OPENSSL_INFO_CONFIG_DIR         returns OPENSSLDIR
OPENSSL_INFO_ENGINES_DIR        returns ENGINESDIR
OPENSSL_INFO_MODULES_DIR        returns MODULESDIR
OPENSSL_INFO_DSO_EXTENSION      returns DSO_EXTENSION

OPENSSL_INFO_DIR_FILENAME_SEPARATOR     returns directory/filename separator
OPENSSL_INFO_LIST_SEPARATOR             returns list separator

For scripting purposes, this also adds the command 'openssl info'.

Reviewed-by: Paul Dale <[email protected]>
(Merged from #8709)
bernd-edlinger pushed a commit to bernd-edlinger/openssl that referenced this pull request May 16, 2020
This adds the flag OPENSSL_MODULES_DIR for OpenSSL_version(), and the
flag '-m' for 'openssl version'.

Reviewed-by: Paul Dale <[email protected]>
(Merged from openssl#8709)

(cherry picked from commit 47ca833)
bernd-edlinger pushed a commit to bernd-edlinger/openssl that referenced this pull request Mar 25, 2022
This adds the flag OPENSSL_MODULES_DIR for OpenSSL_version(), and the
flag '-m' for 'openssl version'.

Reviewed-by: Paul Dale <[email protected]>
(Merged from openssl#8709)

(cherry picked from commit 47ca833)
bernd-edlinger pushed a commit to bernd-edlinger/openssl that referenced this pull request Jun 26, 2022
This adds the flag OPENSSL_MODULES_DIR for OpenSSL_version(), and the
flag '-m' for 'openssl version'.

Reviewed-by: Paul Dale <[email protected]>
(Merged from openssl#8709)

(cherry picked from commit 47ca833)
bernd-edlinger pushed a commit to bernd-edlinger/openssl that referenced this pull request Jul 29, 2022
This adds the flag OPENSSL_MODULES_DIR for OpenSSL_version(), and the
flag '-m' for 'openssl version'.

Reviewed-by: Paul Dale <[email protected]>
(Merged from openssl#8709)

(cherry picked from commit 47ca833)
bernd-edlinger pushed a commit to bernd-edlinger/openssl that referenced this pull request Sep 8, 2022
This adds the flag OPENSSL_MODULES_DIR for OpenSSL_version(), and the
flag '-m' for 'openssl version'.

Reviewed-by: Paul Dale <[email protected]>
(Merged from openssl#8709)

(cherry picked from commit 47ca833)
bernd-edlinger pushed a commit to bernd-edlinger/openssl that referenced this pull request Sep 19, 2022
This adds the flag OPENSSL_MODULES_DIR for OpenSSL_version(), and the
flag '-m' for 'openssl version'.

Reviewed-by: Paul Dale <[email protected]>
(Merged from openssl#8709)

(cherry picked from commit 47ca833)
bernd-edlinger pushed a commit to bernd-edlinger/openssl that referenced this pull request Nov 4, 2022
This adds the flag OPENSSL_MODULES_DIR for OpenSSL_version(), and the
flag '-m' for 'openssl version'.

Reviewed-by: Paul Dale <[email protected]>
(Merged from openssl#8709)

(cherry picked from commit 47ca833)
bernd-edlinger pushed a commit to bernd-edlinger/openssl that referenced this pull request Nov 8, 2022
This adds the flag OPENSSL_MODULES_DIR for OpenSSL_version(), and the
flag '-m' for 'openssl version'.

Reviewed-by: Paul Dale <[email protected]>
(Merged from openssl#8709)

(cherry picked from commit 47ca833)
bernd-edlinger pushed a commit to bernd-edlinger/openssl that referenced this pull request Nov 18, 2022
This adds the flag OPENSSL_MODULES_DIR for OpenSSL_version(), and the
flag '-m' for 'openssl version'.

Reviewed-by: Paul Dale <[email protected]>
(Merged from openssl#8709)

(cherry picked from commit 47ca833)
bernd-edlinger pushed a commit to bernd-edlinger/openssl that referenced this pull request Dec 6, 2022
This adds the flag OPENSSL_MODULES_DIR for OpenSSL_version(), and the
flag '-m' for 'openssl version'.

Reviewed-by: Paul Dale <[email protected]>
(Merged from openssl#8709)

(cherry picked from commit 47ca833)
bernd-edlinger pushed a commit to bernd-edlinger/openssl that referenced this pull request Dec 17, 2022
This adds the flag OPENSSL_MODULES_DIR for OpenSSL_version(), and the
flag '-m' for 'openssl version'.

Reviewed-by: Paul Dale <[email protected]>
(Merged from openssl#8709)

(cherry picked from commit 47ca833)
bernd-edlinger pushed a commit to bernd-edlinger/openssl that referenced this pull request Dec 23, 2022
This adds the flag OPENSSL_MODULES_DIR for OpenSSL_version(), and the
flag '-m' for 'openssl version'.

Reviewed-by: Paul Dale <[email protected]>
(Merged from openssl#8709)

(cherry picked from commit 47ca833)
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.

5 participants