Re: [openssl-users] Where to find definitions of certain functions
> Hardly helps :( ➢ /usr/lib/i386-linux-gnu/libcrypto.a:a_time.o:0230 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
Re: [openssl-users] Where to find definitions of certain functions
Hardly helps :( *nm -o /usr/lib/i386-linux-gnu/libcrypto.a | grep ASN1_TIME_t* nm: ebcdic.o: no symbols /usr/lib/i386-linux-gnu/libcrypto.a:a_time.o:0230 T ASN1_TIME_to_generalizedtime /usr/lib/i386-linux-gnu/libcrypto.a:ocsp_srv.o: U ASN1_TIME_to_generalizedtime On Sat, Oct 15, 2016 at 9:08 PM, Salz, Richwrote: > > grep -r ASN1_TIME\( ~/openssl/openssl/ > > /home/ajay/openssl/openssl/crypto/asn1/a_time.c:int > i2d_ASN1_TIME(ASN1_TIME *a, unsigned char **pp) > > > How to search for such symbols in the cloned source-code? > > Much of the ASN1 data structures are created by macros and it will not be > immediately obvious to newcomers how it works. > > Your best bet is to use "nm -o" on the library and find the file, and then > work backward from there. > > -- > openssl-users mailing list > To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users > -- Regards, Ajay -- openssl-users mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
Re: [openssl-users] Where to find definitions of certain functions
> grep -r ASN1_TIME\( ~/openssl/openssl/ > /home/ajay/openssl/openssl/crypto/asn1/a_time.c:int i2d_ASN1_TIME(ASN1_TIME > *a, unsigned char **pp) > How to search for such symbols in the cloned source-code? Much of the ASN1 data structures are created by macros and it will not be immediately obvious to newcomers how it works. Your best bet is to use "nm -o" on the library and find the file, and then work backward from there. -- openssl-users mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
Re: [openssl-users] Where to find definitions of certain functions
Thanks Matt. That helped. However, I am now searching for symbols like ASN_TIME_it, but I get nothing useful :: *grep -r ASN1_TIME_it ~/openssl/openssl/* /home/ajay/openssl/openssl/util/libeay.num:ASN1_TIME_it2715 EXIST:!EXPORT_VAR_AS_FUNCTION:VARIABLE: /home/ajay/openssl/openssl/util/libeay.num:ASN1_TIME_it2715 EXIST:EXPORT_VAR_AS_FUNCTION:FUNCTION: *grep -r ASN1_TIME\( ~/openssl/openssl/* /home/ajay/openssl/openssl/crypto/asn1/a_time.c:int i2d_ASN1_TIME(ASN1_TIME *a, unsigned char **pp) How to search for such symbols in the cloned source-code? On Sat, Oct 15, 2016 at 6:20 PM, Matt Caswellwrote: > > > On 15/10/16 13:43, Ajay Garg wrote: > > Hi All. > > > > I plan to integrate openssl in our client-side-framework, so that we can > > remove all the unneeded stuff (as the TLS-versions, and > > certificate-management is controlled by the server only, which is only a > > limited subset amongst the vast feature-set of openssl). > > > > As part of this, I am first bringing in *all* code into our framework, > > to the extent that the code compiles as the first stage. > > My progress is going mostly fine, however I am stuck as I am unable to > > retrieve the definitions of certain symbols (macros I guess), such as :: > > > > ASN1_OCTET_STRING_free > > ASN1_OCTET_STRING_new > > > > > > There are others too, but I guess that if I can be known how to retrieve > > the above definitions, then others will follow similarly. > > So, will be grateful to hear from you experts :) > > See: > > https://github.com/openssl/openssl/blob/master/crypto/asn1/tasn_typ.c > > Matt > > > -- > openssl-users mailing list > To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users > -- Regards, Ajay -- openssl-users mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
Re: [openssl-users] Where to find definitions of certain functions
On 15/10/16 13:43, Ajay Garg wrote: > Hi All. > > I plan to integrate openssl in our client-side-framework, so that we can > remove all the unneeded stuff (as the TLS-versions, and > certificate-management is controlled by the server only, which is only a > limited subset amongst the vast feature-set of openssl). > > As part of this, I am first bringing in *all* code into our framework, > to the extent that the code compiles as the first stage. > My progress is going mostly fine, however I am stuck as I am unable to > retrieve the definitions of certain symbols (macros I guess), such as :: > > ASN1_OCTET_STRING_free > ASN1_OCTET_STRING_new > > > There are others too, but I guess that if I can be known how to retrieve > the above definitions, then others will follow similarly. > So, will be grateful to hear from you experts :) See: https://github.com/openssl/openssl/blob/master/crypto/asn1/tasn_typ.c Matt -- openssl-users mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
[openssl-users] Where to find definitions of certain functions
Hi All. I plan to integrate openssl in our client-side-framework, so that we can remove all the unneeded stuff (as the TLS-versions, and certificate-management is controlled by the server only, which is only a limited subset amongst the vast feature-set of openssl). As part of this, I am first bringing in *all* code into our framework, to the extent that the code compiles as the first stage. My progress is going mostly fine, however I am stuck as I am unable to retrieve the definitions of certain symbols (macros I guess), such as :: ASN1_OCTET_STRING_free ASN1_OCTET_STRING_new There are others too, but I guess that if I can be known how to retrieve the above definitions, then others will follow similarly. So, will be grateful to hear from you experts :) Thanks and Regards, Ajay -- openssl-users mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
Re: [openssl-users] Check if key is unlocked
Blah, auto complete bit me - sorry, wrong ml / ot :( On Oct 14, 2016 10:45, "Salz, Rich"wrote: > > Is there a way to to check (from a script) if a key in the agent is > unlocked? > > Agent? Do you mean ssh? This is openssl :) > -- > openssl-users mailing list > To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users > -- openssl-users mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users