On 10/20/2018, 21:41, "openssl-users on behalf of Skip Carter" 
<openssl-users-boun...@openssl.org on behalf of s...@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
    

Attachment: smime.p7s
Description: S/MIME cryptographic signature

-- 
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users

Reply via email to