Discussion:
OpenSSL, usable?
(too old to reply)
tim_c
2014-11-03 00:13:23 UTC
Permalink
I'm again attempting to find a way to use openssl with ow

Has anyone recently succeeded under win32? A trawl of the net shows
someone came close a few years ago.

I gave up on trying to compile openssl itself, this time trying
precompiled. (calling convention problem can be left for later)

Right now I am trying to compile a small library which links to openssl.

This gets no-where because of header stupidity, worked around some of it.

Which leads back to has anyone succeeded?
d3x0r
2014-11-03 08:17:28 UTC
Permalink
Post by tim_c
I'm again attempting to find a way to use openssl with ow
Has anyone recently succeeded under win32? A trawl of the net shows
someone came close a few years ago.
I gave up on trying to compile openssl itself, this time trying
precompiled. (calling convention problem can be left for later)
Right now I am trying to compile a small library which links to openssl.
This gets no-where because of header stupidity, worked around some of it.
Which leads back to has anyone succeeded?
I found a version of openssl that builds with cmake, and removes the perl
dependency.
https://launchpad.net/openssl-cmake
that's to not say it doesn't need a little massaging...

-----
M:\openssl-cmake-1.0.1e-src\crypto\asn1\n_pkey.c(95): Error! E1057:
Modifiers disagree with previous definition of 'NETSCAPE_ENCRYPTED_PKEY_it'
M:\openssl-cmake-1.0.1e-src\crypto\asn1\n_pkey.c(95): Note! N2002:
'NETSCAPE_ENCRYPTED_PKEY_it' defined in:
M:\openssl-cmake-1.0.1e-src\crypto\asn1\n_pkey.c(93)
M:\openssl-cmake-1.0.1e-src\crypto\asn1\n_pkey.c(96): Error! E1057:
Modifiers disagree with previous definition of 'NETSCAPE_ENCRYPTED_PKEY_it'
M:\openssl-cmake-1.0.1e-src\crypto\asn1\n_pkey.c(96): Note! N2002:
'NETSCAPE_ENCRYPTED_PKEY_it' defined in:
M:\openssl-cmake-1.0.1e-src\crypto\asn1\n_pkey.c(93)
M:\openssl-cmake-1.0.1e-src\crypto\asn1\n_pkey.c(105): Error! E1057:
Modifiers disagree with previous definition of 'NETSCAPE_PKEY_it'
M:\openssl-cmake-1.0.1e-src\crypto\asn1\n_pkey.c(105): Note! N2002:
'NETSCAPE_PKEY_it' defined in:
M:\openssl-cmake-1.0.1e-src\crypto\asn1\n_pkey.c(103)
M:\openssl-cmake-1.0.1e-src\crypto\asn1\n_pkey.c(106): Error! E1057:
Modifiers disagree with previous definition of 'NETSCAPE_PKEY_it'
M:\openssl-cmake-1.0.1e-src\crypto\asn1\n_pkey.c(106): Note! N2002:
'NETSCAPE_PKEY_it' defined in:
M:\openssl-cmake-1.0.1e-src\crypto\asn1\n_pkey.c(103)
Error: Compiler returned a bad status compiling
"M:\openssl-cmake-1.0.1e-src\crypto\asn1\n_pkey.c"

which requires decoding layers of defines...

n_pkey.c(95): DECLARE_ASN1_FUNCTIONS_const(NETSCAPE_ENCRYPTED_PKEY)

I remember fixing it, but I don't know what ths issue was... had to get
the compile command and make it compile to a preprocessed file...
tim_c
2014-11-03 14:30:30 UTC
Permalink
Post by d3x0r
Post by tim_c
I'm again attempting to find a way to use openssl with ow
Has anyone recently succeeded under win32? A trawl of the net shows
someone came close a few years ago.
I gave up on trying to compile openssl itself, this time trying
precompiled. (calling convention problem can be left for later)
Right now I am trying to compile a small library which links to openssl.
This gets no-where because of header stupidity, worked around some of it.
Which leads back to has anyone succeeded?
I found a version of openssl that builds with cmake, and removes the
perl dependency.
https://launchpad.net/openssl-cmake
that's to not say it doesn't need a little massaging...
-----
Modifiers disagree with previous definition of 'NETSCAPE_ENCRYPTED_PKEY_it'
M:\openssl-cmake-1.0.1e-src\crypto\asn1\n_pkey.c(93)
Modifiers disagree with previous definition of 'NETSCAPE_ENCRYPTED_PKEY_it'
M:\openssl-cmake-1.0.1e-src\crypto\asn1\n_pkey.c(93)
Modifiers disagree with previous definition of 'NETSCAPE_PKEY_it'
M:\openssl-cmake-1.0.1e-src\crypto\asn1\n_pkey.c(103)
Modifiers disagree with previous definition of 'NETSCAPE_PKEY_it'
M:\openssl-cmake-1.0.1e-src\crypto\asn1\n_pkey.c(103)
Error: Compiler returned a bad status compiling
"M:\openssl-cmake-1.0.1e-src\crypto\asn1\n_pkey.c"
which requires decoding layers of defines...
n_pkey.c(95): DECLARE_ASN1_FUNCTIONS_const(NETSCAPE_ENCRYPTED_PKEY)
I remember fixing it, but I don't know what ths issue was... had to get
the compile command and make it compile to a preprocessed file...
Okay, thank you, confirming it isn't easy.

The cmake version there is "e" but secure version here is "j". On
looking at the precompiled produced by the cmake version it looks
identical to the precompiled I am trying to use except for version.

This focuses the problem onto the header files. As a client of
precompiled merely including the SSL headers goes bad.
d3x0r
2014-11-04 02:51:49 UTC
Permalink
Post by tim_c
Okay, thank you, confirming it isn't easy.
The cmake version there is "e" but secure version here is "j". On
looking at the precompiled produced by the cmake version it looks
identical to the precompiled I am trying to use except for version.
Right; but the file structure probably didn't change for a patch revision;
so probably just updating the sources/headers is fine; generated content
is probably still the same... if you needed to build from source
Post by tim_c
This focuses the problem onto the header files. As a client of
precompiled merely including the SSL headers goes bad.
Oh; can you be more specific? maybe list your includes? I have a
prebuilt version too... but it was just my job to build it, I haven't used
it.
--
Using Opera's mail client: http://www.opera.com/mail/
tim_c
2014-11-04 16:23:49 UTC
Permalink
Post by d3x0r
Post by tim_c
Okay, thank you, confirming it isn't easy.
The cmake version there is "e" but secure version here is "j". On
looking at the precompiled produced by the cmake version it looks
identical to the precompiled I am trying to use except for version.
Right; but the file structure probably didn't change for a patch
revision; so probably just updating the sources/headers is fine;
generated content is probably still the same... if you needed to build
from source
Post by tim_c
This focuses the problem onto the header files. As a client of
precompiled merely including the SSL headers goes bad.
Oh; can you be more specific? maybe list your includes? I have a
prebuilt version too... but it was just my job to build it, I haven't
used it.
I am trying to build luasec, fortunately with sources public view
https://github.com/brunoos/luasec

Troubles start here
https://github.com/brunoos/luasec/blob/master/src/context.c

Most of the trouble involves X509, x509.h is a 45kB file, a lot to go wrong.

The news that the OpenBSD crowd have yanked out OpenSSL, forking into
LibreSSL is possibly good. Seems they have already deleted lots, getting
it good and intend to produce a portable version. No help right now.
Loading...