[openssl-users] Where to find definitions of certain functions

Ajay Garg ajaygargnsit at gmail.com
Sun Oct 16 13:18:43 UTC 2016


Thanks Salz.

I get a lot of linking-errors like ::

ex_data.c:(.text+0xaa6): undefined reference to `sk_num'
ex_data.c:(.text+0xb06): undefined reference to `sk_value'
ex_data.c:(.text+0xc5e): undefined reference to `sk_free'


Doing,



*nm -o /usr/lib/i386-linux-gnu/libssl.a | grep
sk_num*/usr/lib/i386-linux-gnu/libssl.a:s3_srvr.o:
U sk_num
/usr/lib/i386-linux-gnu/libssl.a:s3_clnt.o:         U sk_num
/usr/lib/i386-linux-gnu/libssl.a:s3_lib.o:         U sk_num
/usr/lib/i386-linux-gnu/libssl.a:s23_clnt.o:         U sk_num
/usr/lib/i386-linux-gnu/libssl.a:t1_lib.o:         U sk_num
/usr/lib/i386-linux-gnu/libssl.a:d1_srtp.o:         U sk_num
/usr/lib/i386-linux-gnu/libssl.a:ssl_lib.o:         U sk_num
/usr/lib/i386-linux-gnu/libssl.a:ssl_cert.o:         U sk_num
/usr/lib/i386-linux-gnu/libssl.a:ssl_ciph.o:         U sk_num


Now, if I see, for example in "openssl/ssl/s3_clnt.c", I do not get any
strings for "sk_num", but I do get the strings of the form
"sk_SSL_COMP_num".


Also, I tried doing the following, but could not see any correlation :



*grep -r "define SSL_COMP"
~/openssl/openssl/*/home/ajay/openssl/openssl/crypto/symhacks.h:#
define SSL_COMP_get_compression_methods        SSL_COMP_get_compress_methods
/home/ajay/openssl/openssl/crypto/symhacks.h:#  define
SSL_COMP_set0_compression_methods       SSL_COMP_set0_compress_methods
/home/ajay/openssl/openssl/crypto/symhacks.h:#  define
SSL_COMP_free_compression_methods       SSL_COMP_free_compress_methods
/home/ajay/openssl/openssl/ssl/ssl_ciph.c:#define SSL_COMP_NULL_IDX       0
/home/ajay/openssl/openssl/ssl/ssl_ciph.c:#define SSL_COMP_ZLIB_IDX       1
/home/ajay/openssl/openssl/ssl/ssl_ciph.c:#define SSL_COMP_NUM_IDX        2



What's this mystery?



On Sat, Oct 15, 2016 at 10:55 PM, Salz, Rich <rsalz at akamai.com> wrote:

> > Hardly helps :(
>
> ➢ /usr/lib/i386-linux-gnu/libcrypto.a:a_time.o:00000230 T
> ASN1_TIME_to_generalizedtime
>
> Sure it does.  You know it's in a_time.c, which is crypto/asn1/a_time.c
> And if you look in that file you see "IMPLEMENT_ASN1_FJUNCTIONS" with an
> ASN1_TIME argument.  So, start digging.
>
>
> --
> openssl-users mailing list
> To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
>



-- 
Regards,
Ajay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20161016/b1069a19/attachment.html>


More information about the openssl-users mailing list