Skip to content

OPENSSL_info(): add the item OPENSSL_INFO_SEED_SOURCE and use it - #9689

Closed
levitte wants to merge 3 commits into
openssl:masterfrom
levitte:output-random-seeds
Closed

levitte wants to merge 3 commits into
openssl:masterfrom
levitte:output-random-seeds

Conversation

@levitte

@levitte levitte commented Aug 24, 2019

Copy link
Copy Markdown
Member

'openssl version -r' prints the seed source based on compiler macros.
This does not necessarily reflect the library's idea of what seed
sources to use, so we reimplement the list of seed sources as a
OPENSSL_info() item and display that instead.

@levitte levitte added the branch: master Applies to master branch label Aug 24, 2019
Comment thread apps/info.c Resolved
'openssl version -r' prints the seed source based on compiler macros.
This does not necessarily reflect the library's idea of what seed
sources to use, so we reimplement the list of seed sources as a
OPENSSL_info() item and display that instead.
@levitte
levitte force-pushed the output-random-seeds branch from a377f8d to 0e36bbe Compare August 27, 2019 04:32
@levitte

levitte commented Aug 27, 2019

Copy link
Copy Markdown
Member Author

Re-confirm needed

Comment thread crypto/info.c Resolved
Comment thread doc/man1/openssl-info.pod Resolved
Comment thread crypto/info.c
{
static char seeds[512] = "";

#define add_seeds_string(str) \

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.

I can't say I'm a fan of macros like this. Using strcat mean performance will be awful, macros aren't going to help.

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'm not a fan code copying, which would be the alternative... and this is the info command, you just have to be kidding re performance, I don't see why that would be an issue here.

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.

Worrying about the cost of strcat is silly.

levitte added a commit that referenced this pull request Aug 27, 2019
'openssl version -r' prints the seed source based on compiler macros.
This does not necessarily reflect the library's idea of what seed
sources to use, so we reimplement the list of seed sources as a
OPENSSL_info() item and display that instead.

Reviewed-by: Paul Dale <[email protected]>
(Merged from #9689)
@levitte

levitte commented Aug 27, 2019

Copy link
Copy Markdown
Member Author

Merged.

096978f OPENSSL_info(): add the item OPENSSL_INFO_SEED_SOURCE and use it

@levitte levitte closed this Aug 27, 2019
bernd-edlinger pushed a commit to bernd-edlinger/openssl that referenced this pull request May 16, 2020
'openssl version -r' prints the seed source based on compiler macros.
This does not necessarily reflect the library's idea of what seed
sources to use, so we reimplement the list of seed sources as a
OPENSSL_info() item and display that instead.

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

(cherry picked from commit 096978f)
bernd-edlinger pushed a commit to bernd-edlinger/openssl that referenced this pull request Mar 25, 2022
'openssl version -r' prints the seed source based on compiler macros.
This does not necessarily reflect the library's idea of what seed
sources to use, so we reimplement the list of seed sources as a
OPENSSL_info() item and display that instead.

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

(cherry picked from commit 096978f)
bernd-edlinger pushed a commit to bernd-edlinger/openssl that referenced this pull request Jun 26, 2022
'openssl version -r' prints the seed source based on compiler macros.
This does not necessarily reflect the library's idea of what seed
sources to use, so we reimplement the list of seed sources as a
OPENSSL_info() item and display that instead.

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

(cherry picked from commit 096978f)
bernd-edlinger pushed a commit to bernd-edlinger/openssl that referenced this pull request Jul 29, 2022
'openssl version -r' prints the seed source based on compiler macros.
This does not necessarily reflect the library's idea of what seed
sources to use, so we reimplement the list of seed sources as a
OPENSSL_info() item and display that instead.

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

(cherry picked from commit 096978f)
bernd-edlinger pushed a commit to bernd-edlinger/openssl that referenced this pull request Sep 8, 2022
'openssl version -r' prints the seed source based on compiler macros.
This does not necessarily reflect the library's idea of what seed
sources to use, so we reimplement the list of seed sources as a
OPENSSL_info() item and display that instead.

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

(cherry picked from commit 096978f)
bernd-edlinger pushed a commit to bernd-edlinger/openssl that referenced this pull request Sep 19, 2022
'openssl version -r' prints the seed source based on compiler macros.
This does not necessarily reflect the library's idea of what seed
sources to use, so we reimplement the list of seed sources as a
OPENSSL_info() item and display that instead.

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

(cherry picked from commit 096978f)
bernd-edlinger pushed a commit to bernd-edlinger/openssl that referenced this pull request Nov 4, 2022
'openssl version -r' prints the seed source based on compiler macros.
This does not necessarily reflect the library's idea of what seed
sources to use, so we reimplement the list of seed sources as a
OPENSSL_info() item and display that instead.

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

(cherry picked from commit 096978f)
bernd-edlinger pushed a commit to bernd-edlinger/openssl that referenced this pull request Nov 8, 2022
'openssl version -r' prints the seed source based on compiler macros.
This does not necessarily reflect the library's idea of what seed
sources to use, so we reimplement the list of seed sources as a
OPENSSL_info() item and display that instead.

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

(cherry picked from commit 096978f)
bernd-edlinger pushed a commit to bernd-edlinger/openssl that referenced this pull request Nov 18, 2022
'openssl version -r' prints the seed source based on compiler macros.
This does not necessarily reflect the library's idea of what seed
sources to use, so we reimplement the list of seed sources as a
OPENSSL_info() item and display that instead.

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

(cherry picked from commit 096978f)
bernd-edlinger pushed a commit to bernd-edlinger/openssl that referenced this pull request Dec 6, 2022
'openssl version -r' prints the seed source based on compiler macros.
This does not necessarily reflect the library's idea of what seed
sources to use, so we reimplement the list of seed sources as a
OPENSSL_info() item and display that instead.

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

(cherry picked from commit 096978f)
bernd-edlinger pushed a commit to bernd-edlinger/openssl that referenced this pull request Dec 17, 2022
'openssl version -r' prints the seed source based on compiler macros.
This does not necessarily reflect the library's idea of what seed
sources to use, so we reimplement the list of seed sources as a
OPENSSL_info() item and display that instead.

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

(cherry picked from commit 096978f)
bernd-edlinger pushed a commit to bernd-edlinger/openssl that referenced this pull request Dec 23, 2022
'openssl version -r' prints the seed source based on compiler macros.
This does not necessarily reflect the library's idea of what seed
sources to use, so we reimplement the list of seed sources as a
OPENSSL_info() item and display that instead.

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

(cherry picked from commit 096978f)
bernd-edlinger pushed a commit to bernd-edlinger/openssl that referenced this pull request Jan 27, 2023
'openssl version -r' prints the seed source based on compiler macros.
This does not necessarily reflect the library's idea of what seed
sources to use, so we reimplement the list of seed sources as a
OPENSSL_info() item and display that instead.

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

(cherry picked from commit 096978f)
bernd-edlinger pushed a commit to bernd-edlinger/openssl that referenced this pull request Apr 24, 2023
'openssl version -r' prints the seed source based on compiler macros.
This does not necessarily reflect the library's idea of what seed
sources to use, so we reimplement the list of seed sources as a
OPENSSL_info() item and display that instead.

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

(cherry picked from commit 096978f)
bernd-edlinger pushed a commit to bernd-edlinger/openssl that referenced this pull request Apr 30, 2023
'openssl version -r' prints the seed source based on compiler macros.
This does not necessarily reflect the library's idea of what seed
sources to use, so we reimplement the list of seed sources as a
OPENSSL_info() item and display that instead.

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

(cherry picked from commit 096978f)
bernd-edlinger pushed a commit to bernd-edlinger/openssl that referenced this pull request May 13, 2023
'openssl version -r' prints the seed source based on compiler macros.
This does not necessarily reflect the library's idea of what seed
sources to use, so we reimplement the list of seed sources as a
OPENSSL_info() item and display that instead.

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

(cherry picked from commit 096978f)
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.

3 participants