[openssl-users] What to do with deprecation errors
Blumenthal, Uri - 0553 - MITLL
uri at ll.mit.edu
Sun Oct 21 02:10:20 UTC 2018
On 10/20/2018, 21:41, "openssl-users on behalf of Skip Carter" <openssl-users-bounces at openssl.org on behalf of skip at taygeta.com> wrote:
Yes, that works just fine for me too. But if I include ssl.h I have
the problem. The various DEPRECATED.. macros don't get pre-compiled
and get handed to the compiler. I think I improperly installed the
headers.
I think so too, because adding ssl.h doesn't break compilation/run for me:
$ cat ttt.c
#include <stdio.h>
#include <openssl/opensslv.h>
#include <openssl/ssl.h>
int main(void)
{
printf("OPENSSL_VERSION_NUMBER %lx\n",OPENSSL_VERSION_NUMBER);
return 0;
}
$ gcc -o ttt -I$HOME/openssl-1.1/include ttt.c -L$HOME/openssl-1.1/lib -lcrypto
$ ./ttt
OPENSSL_VERSION_NUMBER 10101010
$ gcc -o ttt ttt.c -lcrypto
$ ./ttt
OPENSSL_VERSION_NUMBER 1000210f
$
On Sun, 2018-10-21 at 00:36 +0000, Blumenthal, Uri - 0553 - MITLL
wrote:
> I'm not sure I understand what you're doing, but:
>
> $ cat ttt.c
> #include <stdio.h>
> #include <openssl/opensslv.h>
>
> int main(void)
> {
> printf("OPENSSL_VERSION_NUMBER %lx\n",OPENSSL_VERSION_NUMBER);
> return 0;
> }
> $ gcc -o ttt ttt.c -lcrypto
> $ ./ttt
> OPENSSL_VERSION_NUMBER 1000210f
> $ gcc -o ttt -I$HOME/openssl-1.1/include ttt.c -L$HOME/openssl-
> 1.1/lib -lcrypto
> $ ./ttt
> OPENSSL_VERSION_NUMBER 10101010
> $
>
> --
> Regards,
> Uri
>
>
--
Skip Carter
Taygeta Scientific Inc.
--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5211 bytes
Desc: not available
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20181021/1dcd67a5/attachment.bin>
More information about the openssl-users
mailing list