Skip to content

X509Certificate: Get rid of deprecated OpenSSL 1.1 APIs#2827

Merged
obiltschnig merged 1 commit intopocoproject:poco-1.10.0from
neheb:patch-2
Nov 4, 2019
Merged

X509Certificate: Get rid of deprecated OpenSSL 1.1 APIs#2827
obiltschnig merged 1 commit intopocoproject:poco-1.10.0from
neheb:patch-2

Conversation

@neheb
Copy link
Copy Markdown
Contributor

@neheb neheb commented Nov 3, 2019

Added a missing implicit header and added compatibility macros.

Signed-off-by: Rosen Penev rosenp@gmail.com

@obiltschnig
Copy link
Copy Markdown
Member

Please re-target your PR against poco-1.10.0 branch.

Added a missing implicit header and added compatibility macros.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
@neheb neheb changed the base branch from master to poco-1.10.0 November 4, 2019 19:42
@neheb
Copy link
Copy Markdown
Contributor Author

neheb commented Nov 4, 2019

I think that should do it.

@obiltschnig obiltschnig merged commit 5441387 into pocoproject:poco-1.10.0 Nov 4, 2019
@obiltschnig obiltschnig added this to the Release 1.10.0 milestone Nov 4, 2019
@neheb neheb deleted the patch-2 branch November 4, 2019 19:47
if (name->type == GEN_DNS)
{
const char* data = reinterpret_cast<char*>(ASN1_STRING_data(name->d.ia5));
const char* data = reinterpret_cast<char*>(ASN1_STRING_get0_data(name->d.ia5));
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

My C++ is poor but note that ASN1_STRING_get0_data returns const unsigned char* whereas ASN1_STRING_data returns unsigned char*. There might be a const_cast needed.

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.

Thanks, will fix.

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