Re: AW: AW: BUG: CreateToolhelp32Snapshot, check if running as NTservice
In message [EMAIL PROTECTED] on Sun, 10 Aug 2003 02:25:38 +0200, Ingo A. Kubbilun [EMAIL PROTECTED] said: ingo Jeff: ingo ingo In fact, it is sufficient to call the supplied function as described in ingo my last mail: IsService(EXENAME_SERVICES,EXENAME_WINLOGON,SYSTEM_SID) ingo The three arguments are just three #define's (refer to svccheck.h). ingo The function's prototype requires three params because I cloned the ingo stuff from another project I'm currently working on. ingo For your convenience, you can also add another #define: ingo ingo #define _IsService ingo IsService(EXENAME_SERVICES,EXENAME_WINLOGON,SYSTEM_SID) ingo ingo and use the macro _IsService instead. If you need another solution, ingo please ingo let me know. Hmm, are EXENAME_SERVICES, EXENAME_WINLOGIN and SYSTEM_SID independent of the windows version and so on that you happen to build it no? If not, your solution has the flaw that it will check with parameters that were set when OpenSSL was built, not the correct parameters of an actual run. -- Richard Levitte \ Tunnlandsvägen 3 \ [EMAIL PROTECTED] [EMAIL PROTECTED] \ S-168 36 BROMMA \ T: +46-8-26 52 47 \ SWEDEN \ or +46-708-26 53 44 Procurator Odiosus Ex Infernis-- [EMAIL PROTECTED] Member of the OpenSSL development team: http://www.openssl.org/ Unsolicited commercial email is subject to an archival fee of $400. See http://www.stacken.kth.se/~levitte/mail/ for more info. __ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
Re: building 0.9.7b
Frank Balluffi wrote: I need to call libcrypto from a .so file on Solaris using gcc. When I build 0.9.7b as shared objects with the following commands: ./config no-rc5 shared make depend make Why no-rc5? All the problems below are with missing rc5. I get the following errors: + gcc -shared -G -dy -z text -o libcrypto.so.0.9.7 -h libcrypto.so.0.9.7 -Wl,-z, allextract libcrypto.a -Wl,-z,defaultextract -L. -lsocket -lnsl -ldl -lc Text relocation remains referenced against symbol offset in file unknown 0x2c0 libcrypto.a(rc5_skey.o) unknown 0x2c4 libcrypto.a(rc5_skey.o) unknown 0x2c8 libcrypto.a(rc5_skey.o) unknown 0x2cc libcrypto.a(rc5_skey.o) unknown 0x2d0 libcrypto.a(rc5_skey.o) unknown 0x2d4 libcrypto.a(rc5_skey.o) unknown 0x2d8 libcrypto.a(rc5_skey.o) unknown 0x2dc libcrypto.a(rc5_skey.o) unknown 0x5e0 libcrypto.a(rc5_enc.o) unknown 0x5e4 libcrypto.a(rc5_enc.o) unknown 0x5e8 libcrypto.a(rc5_enc.o) unknown 0x5ec libcrypto.a(rc5_enc.o) unknown 0x5f0 libcrypto.a(rc5_enc.o) unknown 0x5f4 libcrypto.a(rc5_enc.o) unknown 0x5f8 libcrypto.a(rc5_enc.o) unknown 0x5fc libcrypto.a(rc5_enc.o) unknown 0x600 libcrypto.a(rc5_enc.o) unknown 0x604 libcrypto.a(rc5_enc.o) unknown 0x608 libcrypto.a(rc5_enc.o) unknown 0x60c libcrypto.a(rc5_enc.o) unknown 0x610 libcrypto.a(rc5_enc.o) unknown 0x614 libcrypto.a(rc5_enc.o) unknown 0x618 libcrypto.a(rc5_enc.o) unknown 0x61c libcrypto.a(rc5_enc.o) unknown 0x100 libcrypto.a(rc5_skey.o) unknown 0x104 libcrypto.a(rc5_skey.o) RC5_32_encrypt 0x80libcrypto.a(rc5_ecb.o) RC5_32_encrypt 0x10c libcrypto.a(rc5_enc.o) RC5_32_encrypt 0x238 libcrypto.a(rc5_enc.o) RC5_32_encrypt 0xa8libcrypto.a(rc5cfb64.o) RC5_32_encrypt 0x1c4 libcrypto.a(rc5cfb64.o) RC5_32_encrypt 0xd8libcrypto.a(rc5ofb64.o) RC5_32_decrypt 0x90libcrypto.a(rc5_ecb.o) RC5_32_decrypt 0x3d8 libcrypto.a(rc5_enc.o) RC5_32_decrypt 0x4d8 libcrypto.a(rc5_enc.o) unknown 0x1a0 libcrypto.a(rc5_enc.o) unknown 0x1a4 libcrypto.a(rc5_enc.o) unknown 0x504 libcrypto.a(rc5_enc.o) unknown 0x508 libcrypto.a(rc5_enc.o) ld: fatal: relocations remain against allocatable but non-writable sections collect2: ld returned 1 exit status 1. Am I doing something wrong? Alternatively, I could build libcrypto statically with the gcc option -fPIC. I am able to build 0.9.7b statically using the following commands: If you build static, you will have the same problems as you did with the Kerberos libs, you need to build shared. ./config make but can't figure out a way to pass -fPIC via config (or Configure). 2. Is it possible to pass the compiler flag -fPIC to config? Thanks. Frank -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. __ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED] -- Douglas E. Engert [EMAIL PROTECTED] Argonne National Laboratory 9700 South Cass Avenue Argonne, Illinois 60439 (630) 252-5444 __ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]