Re: Openssl on Win32 (help!)
- Original Message - From: "Kenneth R. Robinette" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, January 27, 2001 1:32 AM Subject: Re: Openssl on Win32 (help!) From: stuart hodgkinson [EMAIL PROTECTED] Subject: Re: Openssl on Win32 (help!) To: [EMAIL PROTECTED] Date sent: Fri, 26 Jan 2001 23:11:35 + (GMT+00:00) Send reply to: [EMAIL PROTECTED] Stuart I think you are trying a little to hard. And, although the documentation is not the best, you do have to at least try to read it. As for examples, the entire apps directory can be used as examples. You even have a complete server and complete client as well as openssl which uses a large majority of the functions. Have you even tried running openssl with s_server and s_client? On the winsock issue, why should you care. If you use the normal OpenSSL functions you have no need for socket calls. Perhaps I don't understand what you mean by examples. Ken Finally i have compilled s_client.c into a visual c++ project named SSLClient. It is attached here. But... it seems doesn't work at all. Why? In the debug mode BIO_printf() function cause a ntdll.dll memory exception: "Unhandled exception in SSLCliet.exe (NTDLL.DLL): 0x005: Access Violation" . The bio_err extern pointer seems to be incorrect. Can anyone help me? I am using a openssl dlls compiled by me on a nt 4 workstation sp6. SSLClient.zip
Re: Openssl on Win32 (help!)
From: "lucian" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Openssl on Win32 (help!) Date sent: Mon, 29 Jan 2001 17:49:54 +0200 Send reply to: [EMAIL PROTECTED] Take a look at the .bat file you used when you compiled the OpenSSL .dll's. You must use the same options in VC 6.0 when you compile within your project. The most common problem is the type of executable you are creating in VC, multithreaded dll, etc. Ken - Original Message - From: "Kenneth R. Robinette" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, January 27, 2001 1:32 AM Subject: Re: Openssl on Win32 (help!) From: stuart hodgkinson [EMAIL PROTECTED] Subject: Re: Openssl on Win32 (help!) To: [EMAIL PROTECTED] Date sent: Fri, 26 Jan 2001 23:11:35 + (GMT+00:00) Send reply to: [EMAIL PROTECTED] Stuart I think you are trying a little to hard. And, although the documentation is not the best, you do have to at least try to read it. As for examples, the entire apps directory can be used as examples. You even have a complete server and complete client as well as openssl which uses a large majority of the functions. Have you even tried running openssl with s_server and s_client? On the winsock issue, why should you care. If you use the normal OpenSSL functions you have no need for socket calls. Perhaps I don't understand what you mean by examples. Ken Finally i have compilled s_client.c into a visual c++ project named SSLClient. It is attached here. But... it seems doesn't work at all. Why? In the debug mode BIO_printf() function cause a ntdll.dll memory exception: "Unhandled exception in SSLCliet.exe (NTDLL.DLL): 0x005: Access Violation" . The bio_err extern pointer seems to be incorrect. Can anyone help me? I am using a openssl dlls compiled by me on a nt 4 workstation sp6. __ Support InterSoft International, Inc. Voice: 888-823-1541, International 281-398-7060 Fax: 888-823-1542, International 281-560-9170 [EMAIL PROTECTED] http://www.securenetterm.com __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
Re: Openssl on Win32 (help!)
sorted out the problem with the coruppt lib. cheers Bill you pointed me off in the right direction. StOo ___ FSmail - Get your free web-based email from Freeserve: www.fsmail.net __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
Re: Openssl on Win32 (help!)
Ok I'm new to this and my first mail was a bit vague. I downloaded the latest source and compiled it on Win NT sp6 but I'm low on documentation and could do with some of that. I found the example in the demo directory and noticed it was for unix/linux. I know theres some differences between winsocks and unix/linux stuff..so i was looking for a windows example. I found one that works with older static libs. But when I tried to recompile it with the new source it complians about the ssleay32.lib being currupt... Im baffled without docs and examples so any help is really really really appriciated. StOo - Original Message - From: "Kenneth R. Robinette" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Fri, 26 Jan 2001 18:25:49 + (GMT+00:00) Subject: Re: Openssl on Win32 From: stuart hodgkinson [EMAIL PROTECTED] Subject: Openssl on Win32 To: [EMAIL PROTECTED] Date sent:Fri, 26 Jan 2001 18:23:45 + (GMT+00:00) Send reply to:[EMAIL PROTECTED] Stuart What kind of example? It works exactly the same way with exactly the same calls. Ken Hi is there a good resource of information for win32 implementations of openssl? all the examples are in unix/linux (no gripes there! I'd rather be developing on linux!) I need a good example or 2. please help StOo ___ FSmail - Get your free web-based email from Freeserve: www.fsmail.net __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED] __ Support InterSoft International, Inc. Voice: 888-823-1541, International 281-398-7060 Fax: 888-823-1542, International 281-560-9170 [EMAIL PROTECTED] http://www.securenetterm.com __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED] ___ FSmail - Get your free web-based email from Freeserve: www.fsmail.net __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
Re: Openssl on Win32 (help!)
From: stuart hodgkinson [EMAIL PROTECTED] Subject:Re: Openssl on Win32 (help!) To: [EMAIL PROTECTED] Date sent: Fri, 26 Jan 2001 23:11:35 + (GMT+00:00) Send reply to: [EMAIL PROTECTED] Stuart I think you are trying a little to hard. And, although the documentation is not the best, you do have to at least try to read it. As for examples, the entire apps directory can be used as examples. You even have a complete server and complete client as well as openssl which uses a large majority of the functions. Have you even tried running openssl with s_server and s_client? On the winsock issue, why should you care. If you use the normal OpenSSL functions you have no need for socket calls. Perhaps I don't understand what you mean by examples. Ken Ok I'm new to this and my first mail was a bit vague. I downloaded the latest source and compiled it on Win NT sp6 but I'm low on documentation and could do with some of that. I found the example in the demo directory and noticed it was for unix/linux. I know theres some differences between winsocks and unix/linux stuff..so i was looking for a windows example. I found one that works with older static libs. But when I tried to recompile it with the new source it complians about the ssleay32.lib being currupt... Im baffled without docs and examples so any help is really really really appriciated. StOo - Original Message - From: "Kenneth R. Robinette" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Fri, 26 Jan 2001 18:25:49 + (GMT+00:00) Subject: Re: Openssl on Win32 From: stuart hodgkinson [EMAIL PROTECTED] Subject: Openssl on Win32 To: [EMAIL PROTECTED] Date sent:Fri, 26 Jan 2001 18:23:45 + (GMT+00:00) Send reply to:[EMAIL PROTECTED] Stuart What kind of example? It works exactly the same way with exactly the same calls. Ken Hi is there a good resource of information for win32 implementations of openssl? all the examples are in unix/linux (no gripes there! I'd rather be developing on linux!) I need a good example or 2 . please help StOo ___ FSmail - Get your free web-based email from Freeserve: www.fsmail.net __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED] __ Support InterSoft International, Inc. Voice: 888-823-1541, International 281-398-7060 Fax: 888-823-1542, International 281-560-9170 [EMAIL PROTECTED] http://www.securenetterm.com __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED] ___ FSmail - Get your free web-based email from Freeserve: www.fsmail.net __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED] __ Support InterSoft International, Inc. Voice: 888-823-1541, International 281-398-7060 Fax: 888-823-1542, International 281-560-9170 [EMAIL PROTECTED] http://www.securenetterm.com __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
Re: Openssl on Win32 (help!)
ok. this is from a c/c++ standpoint for actual intergration into an application. So i'm looking for source code examples and linking information etc etc. StOo - Original Message - From: "Kenneth R. Robinette" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Fri, 26 Jan 2001 23:32:47 + (GMT+00:00) Subject: Re: Openssl on Win32 (help!) From: stuart hodgkinson [EMAIL PROTECTED] Subject: Re: Openssl on Win32 (help!) To: [EMAIL PROTECTED] Date sent:Fri, 26 Jan 2001 23:11:35 + (GMT+00:00) Send reply to:[EMAIL PROTECTED] Stuart I think you are trying a little to hard. And, although the documentation is not the best, you do have to at least try to read it. As for examples, the entire apps directory can be used as examples. You even have a complete server and complete client as well as openssl which uses a large majority of the functions. Have you even tried running openssl with s_server and s_client? On the winsock issue, why should you care. If you use the normal OpenSSL functions you have no need for socket calls. Perhaps I don't understand what you mean by examples. Ken Ok I'm new to this and my first mail was a bit vague. I downloaded the latest source and compiled it on Win NT sp6 but I'm low on documentation and could do with some of that. I found the example in the demo directory and noticed it was for unix/linux. I know theres some differences between winsocks and unix/linux stuff..so i was looking for a windows example. I found one that works with older static libs. But when I tried to recompile it with the new source it complians about the ssleay32.lib being currupt... Im baffled without docs and examples so any help is really really really appriciated. StOo - Original Message - From: "Kenneth R. Robinette" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Fri, 26 Jan 2001 18:25:49 + (GMT+00:00) Subject: Re: Openssl on Win32 From: stuart hodgkinson [EMAIL PROTECTED] Subject:Openssl on Win32 To: [EMAIL PROTECTED] Date sent: Fri, 26 Jan 2001 18:23:45 + (GMT+00:00) Send reply to: [EMAIL PROTECTED] Stuart What kind of example? It works exactly the same way with exactly the same calls. Ken Hi is there a good resource of information for win32 implementations of openssl? all the examples are in unix/linux (no gripes there! I'd rather be developing on linux!) I need a good example or 2 . please help StOo ___ FSmail - Get your free web-based email from Freeserve: www.fsmail.net __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED] __ Support InterSoft International, Inc. Voice: 888-823-1541, International 281-398-7060 Fax: 888-823-1542, International 281-560-9170 [EMAIL PROTECTED] http://www.securenetterm.com __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED] ___ FSmail - Get your free web-based email from Freeserve: www.fsmail.net __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED] __ Support InterSoft International, Inc. Voice: 888-823-1541, International 281-398-7060 Fax: 888-823-1542, International 281-560-9170 [EMAIL PROTECTED] http://www.securenetterm.com __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED] ___ FSmail - Get your free web-based email from Freeserve: www.fsmail.net __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
Re: Openssl on Win32 (help!)
From: stuart hodgkinson [EMAIL PROTECTED] Subject:Re: Openssl on Win32 (help!) To: [EMAIL PROTECTED] Date sent: Sat, 27 Jan 2001 00:06:58 + (GMT+00:00) Send reply to: [EMAIL PROTECTED] Stuart Well, if you run and look at openssl s_client then your are looking at a real application, in fact one that contains one heck of a lot more then you would ever have a desire to use. And it is compiled with "C". All the apps in the apps directory use the two dll's produced when your compiled OpenSSL. You can even create static libraries that you can link to from Microsoft Visual C/C++. I use version 6.0 of Visual C/C++ and have linked to OpenSSL both with the .dll and static libraries. So if you want to look at a "real" application that can be used from a "C" point of view, look at any of those in the apps directory. If you don't have a OpenSSL baser server to test with, use the openssl s_server. It will run on Windows, and of course if you have compiled OpenSSL on a Unix system you can run the OpenSSL s_server on UNIX and the OpenSSL s_client on Windows. Or you can reverse it. I really don't know how you can find an example application any better than what you already have. If you want a really complex example application, download the apache web server and mod_ssl source. Ken ok. this is from a c/c++ standpoint for actual intergration into an application. So i'm looking for source code examples and linking information etc etc. StOo - Original Message - From: "Kenneth R. Robinette" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Fri, 26 Jan 2001 23:32:47 +0000 (GMT+00:00) Subject: Re: Openssl on Win32 (help!) From: stuart hodgkinson [EMAIL PROTECTED] Subject: Re: Openssl on Win32 (help!) To: [EMAIL PROTECTED] Date sent:Fri, 26 Jan 2001 23:11:35 + (GMT+00:00) Send reply to:[EMAIL PROTECTED] Stuart I think you are trying a little to hard. And, although the documentation is not the best, you do have to at least try to read it. As for examples, the entire apps directory can be used as examples. You even have a complete server and complete client as well as openssl which uses a large majority of the functions. Have you even tried running openssl with s_server and s_client? On the winsock issue, why should you care. If you use the normal OpenSSL functions you have no need for socket calls. Perhaps I don't understand what you mean by examples. Ken Ok I'm new to this and my first mail was a bit vague. I downloaded the latest source and compiled it on Win NT sp6 but I'm low on documentation and could do with some of that. I found the example in the demo directory and noticed it was for unix/linux. I know theres some differences between win socks and unix/linux stuff..so i was looking for a windows example. I found one that works with ol der static libs. But when I tried to recompile it with the new source it complians about the ssleay 32.lib being currupt... Im baffled without docs and examples so any help is really really really ap priciated. StOo - Original Message - From: "Kenneth R. Robinette" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Fri, 26 Jan 2001 18:25:49 + (GMT+00:00) Subject: Re: Openssl on Win32 From: stuart hodgkinson [EMAIL PROTECTED] Subject:Openssl on Win32 To: [EMAIL PROTECTED] Date sent: Fri, 26 Jan 2001 18:23:45 + (GMT+00:00) Send reply to: [EMAIL PROTECTED] Stuart What kind of example? It works exactly the same way with exactly the same calls. Ken Hi is there a good resource of information for win32 implementations of openssl? all the exampl es are in unix/linux (no gripes there! I'd rather be developing on linux!) I need a good example or 2 . please help StOo ___ FSmail - Get your free web-based email from Freeserve: www.fsmail.net __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED] __ Support InterSoft International, Inc. Voice: 888-823-1541, International 281-398-7060 Fax: 888-823-1542, International 281-560-9170 [EMAIL PROTECTED] http://www.securenetterm.com __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List
Re: Openssl on Win32 (help!)
doh! i completley missed that directory cheers. quick question though when i try to link to the sslevy32.lib i get:- CVTRES : fatal error CVT1107: D:\openssl\openssl-0.9.6\out32dll\ssleay32.lib is corrupt D:\openssl\openssl-0.9.6\out32dll\ssleay32.lib : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt Error executing link.exe. any ideas? i've been working on other os's for the past few years so im rusty as hell with windoze your help is appriciated. - Original Message - From: "Kenneth R. Robinette" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sat, 27 Jan 2001 00:22:38 + (GMT+00:00) Subject: Re: Openssl on Win32 (help!) From: stuart hodgkinson [EMAIL PROTECTED] Subject: Re: Openssl on Win32 (help!) To: [EMAIL PROTECTED] Date sent:Sat, 27 Jan 2001 00:06:58 + (GMT+00:00) Send reply to:[EMAIL PROTECTED] Stuart Well, if you run and look at openssl s_client then your are looking at a real application, in fact one that contains one heck of a lot more then you would ever have a desire to use. And it is compiled with "C". All the apps in the apps directory use the two dll's produced when your compiled OpenSSL. You can even create static libraries that you can link to from Microsoft Visual C/C++. I use version 6.0 of Visual C/C++ and have linked to OpenSSL both with the .dll and static libraries. So if you want to look at a "real" application that can be used from a "C" point of view, look at any of those in the apps directory. If you don't have a OpenSSL baser server to test with, use the openssl s_server. It will run on Windows, and of course if you have compiled OpenSSL on a Unix system you can run the OpenSSL s_server on UNIX and the OpenSSL s_client on Windows. Or you can reverse it. I really don't know how you can find an example application any better than what you already have. If you want a really complex example application, download the apache web server and mod_ssl source. Ken ok. this is from a c/c++ standpoint for actual intergration into an application. So i'm looking for source code examples and linking information etc etc. StOo - Original Message - From: "Kenneth R. Robinette" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Fri, 26 Jan 2001 23:32:47 +0000 (GMT+00:00) Subject: Re: Openssl on Win32 (help!) From: stuart hodgkinson [EMAIL PROTECTED] Subject:Re: Openssl on Win32 (help!) To: [EMAIL PROTECTED] Date sent: Fri, 26 Jan 2001 23:11:35 + (GMT+00:00) Send reply to: [EMAIL PROTECTED] Stuart I think you are trying a little to hard. And, although the documentation is not the best, you do have to at least try to read it. As for examples, the entire apps directory can be used as examples. You even have a complete server and complete client as well as openssl which uses a large majority of the functions. Have you even tried running openssl with s_server and s_client? On the winsock issue, why should you care. If you use the normal OpenSSL functions you have no need for socket calls. Perhaps I don't understand what you mean by examples. Ken Ok I'm new to this and my first mail was a bit vague. I downloaded the latest source and compiled it on Win NT sp6 but I'm low on documentation and could do with some of that. I found the example in the demo directory and noticed it was for unix/linux. I know theres some differences between win socks and unix/linux stuff..so i was looking for a windows example. I found one that works with ol der static libs. But when I tried to recompile it with the new source it complians about the ssleay 32.lib being currupt... Im baffled without docs and examples so any help is really really really ap priciated. StOo - Original Message - From: "Kenneth R. Robinette" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Fri, 26 Jan 2001 18:25:49 + (GMT+00:00) Subject: Re: Openssl on Win32 From: stuart hodgkinson [EMAIL PROTECTED] Subject: Openssl on Win32 To: [EMAIL PROTECTED] Date sent:Fri, 26 Jan 2001 18:23:45 + (GMT+00:00) Send reply to:[EMAIL PROTECTED] Stuart What kind of example? It works exactly the same way with exactly the same calls. Ken Hi is there a good resource of information for win32 implementations of openssl? all the exampl es are in unix/linux (no gripes there! I'd rather be developing on linux!) I need a good example or 2 . please help StOo ___ FSmail -
Re: Openssl on Win32 (help!)
i built the dlls as described in the install.w32 /ms/do_ms the test executables work ok and the \ms\test works as well. i dont intentonal run that batch file so no as far as i am aware. as for the compiler bit i assume so but as i say i did this straight from the install.w32 and the lib was created during the nmake -f ms\ntdll.mak bit. cheers for your help - Original Message - From: Bill Browning [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] Sent: Sat, 27 Jan 2001 01:10:33 + (GMT+00:00) Subject: RE: Openssl on Win32 (help!) Included below is Microsoft's man page regarding that link error, it sounds like you may be mixing 32 and 16 bit libraries or actually have a corrupt .lib file. Did the *test.exe executables (i.e.. shatest.exe ) build correctly? Do your typically run VCVARS32.bat before running nmake? Are you using the same compiler for creating the .lib and linking your executable? The CVT1107 error indicates that cvtres.exe could not make heads or tails of the library you gave it. Bill Linker Tools Error LNK1123 failure during conversion to COFF: file invalid or corrupt The object or resource could not be converted to COFF. This tool requires the format of all input files to be COFF. If an input file is not COFF, the tool runs a conversion tool, either CVTOMF (to convert 32-bit OMF objects) or CVTRES (to convert resource files). One of the following may be a cause: The file is corrupt. The file is not a valid file type. An example of an invalid type is a 16-bit OMF object. This error is preceded by errors or warnings from the conversion tool. -Original Message- From: stuart hodgkinson [mailto:[EMAIL PROTECTED]] Sent: Friday, January 26, 2001 5:00 PM To: [EMAIL PROTECTED] Subject: Re: Openssl on Win32 (help!) doh! i completley missed that directory cheers. quick question though when i try to link to the sslevy32.lib i get:- CVTRES : fatal error CVT1107: D:\openssl\openssl-0.9.6\out32dll\ssleay32.lib is corrupt D:\openssl\openssl-0.9.6\out32dll\ssleay32.lib : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt Error executing link.exe. any ideas? i've been working on other os's for the past few years so im rusty as hell with windoze your help is appriciated. - Original Message - From: "Kenneth R. Robinette" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sat, 27 Jan 2001 00:22:38 + (GMT+00:00) Subject: Re: Openssl on Win32 (help!) From: stuart hodgkinson [EMAIL PROTECTED] Subject: Re: Openssl on Win32 (help!) To: [EMAIL PROTECTED] Date sent: Sat, 27 Jan 2001 00:06:58 + (GMT+00:00) Send reply to: [EMAIL PROTECTED] Stuart Well, if you run and look at openssl s_client then your are looking at a real application, in fact one that contains one heck of a lot more then you would ever have a desire to use. And it is compiled with "C". All the apps in the apps directory use the two dll's produced when your compiled OpenSSL. You can even create static libraries that you can link to from Microsoft Visual C/C++. I use version 6.0 of Visual C/C++ and have linked to OpenSSL both with the .dll and static libraries. So if you want to look at a "real" application that can be used from a "C" point of view, look at any of those in the apps directory. If you don't have a OpenSSL baser server to test with, use the openssl s_server. It will run on Windows, and of course if you have compiled OpenSSL on a Unix system you can run the OpenSSL s_server on UNIX and the OpenSSL s_client on Windows. Or you can reverse it. I really don't know how you can find an example application any better than what you already have. If you want a really complex example application, download the apache web server and mod_ssl source. Ken ok. this is from a c/c++ standpoint for actual intergration into an application. So i'm looking for source code examples and linking information etc etc. StOo - Original Message - From: "Kenneth R. Robinette" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Fri, 26 Jan 2001 23:32:47 + (GMT+00:00) Subject: Re: Openssl on Win32 (help!) From: stuart hodgkinson [EMAIL PROTECTED] Subject: Re: Openssl on Win32 (help!) To: [EMAIL PROTECTED] Date sent:Fri, 26 Jan 2001 23:11:35 + (GMT+00:00) Send reply to:[EMAIL PROTECTED] Stuart I think you are trying a little to hard. And, although the documentation is not the best, you do have to at least try to read it. As for examples, the entire apps directory can be used as examples. You even have a complete server and complete client as well as openssl which uses a
Re: Openssl on Win32 (help!)
From: stuart hodgkinson [EMAIL PROTECTED] Subject:Re: Openssl on Win32 (help!) To: [EMAIL PROTECTED] Date sent: Sat, 27 Jan 2001 01:00:18 + (GMT+00:00) Send reply to: [EMAIL PROTECTED] If the test programs work (in the out32 directory) then you should look elsewhere for the problem. Now don't take me wrong, I understand how hard it is to switch from one system to another system and get back in the groove again on all the programming details. However I don't think it is really wise to choose such an area as encryption, etc. as a good starting point. There are all sorts of issues totally unrelated to programming that you should be aware of, in addition to knowing how, why and the drawbacks of using portions of the OpenSSL code. Even if this is for your own enjoyment, and you could care less about all the other issues, OpenSSL presents a challenge to even the best of programmers. Take note of some of the questions being asked on this list; I don't even know what the hell half of them is even about. Ken doh! i completley missed that directory cheers. quick question though when i try to link to the sslevy32.lib i get:- CVTRES : fatal error CVT1107: D:\openssl\openssl-0.9.6\out32dll\ssleay32.lib is corrupt D:\openssl\openssl-0.9.6\out32dll\ssleay32.lib : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt Error executing link.exe. any ideas? i've been working on other os's for the past few years so im rusty as hell with windoze your help is appriciated. - Original Message - From: "Kenneth R. Robinette" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sat, 27 Jan 2001 00:22:38 + (GMT+00:00) Subject: Re: Openssl on Win32 (help!) From: stuart hodgkinson [EMAIL PROTECTED] Subject: Re: Openssl on Win32 (help!) To: [EMAIL PROTECTED] Date sent:Sat, 27 Jan 2001 00:06:58 + (GMT+00:00) Send reply to:[EMAIL PROTECTED] Stuart Well, if you run and look at openssl s_client then your are looking at a real application, in fact one that contains one heck of a lot more then you would ever have a desire to use. And it is compiled with "C". All the apps in the apps directory use the two dll's produced when your compiled OpenSSL. You can even create static libraries that you can link to from Microsoft Visual C/C++. I use version 6.0 of Visual C/C++ and have linked to OpenSSL both with the .dll and static libraries. So if you want to look at a "real" application that can be used from a "C" point of view, look at any of those in the apps directory. If you don't have a OpenSSL baser server to test with, use the openssl s_server. It will run on Windows, and of course if you have compiled OpenSSL on a Unix system you can run the OpenSSL s_server on UNIX and the OpenSSL s_client on Windows. Or you can reverse it. I really don't know how you can find an example application any better than what you already have. If you want a really complex example application, download the apache web server and mod_ssl source. Ken ok. this is from a c/c++ standpoint for actual intergration into an application. So i'm looking f or source code examples and linking information etc etc. StOo - Original Message - From: "Kenneth R. Robinette" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Fri, 26 Jan 2001 23:32:47 +0000 (GMT+00:00) Subject: Re: Openssl on Win32 (help!) From: stuart hodgkinson [EMAIL PROTECTED] Subject:Re: Openssl on Win32 (help!) To: [EMAIL PROTECTED] Date sent: Fri, 26 Jan 2001 23:11:35 + (GMT+00:00) Send reply to: [EMAIL PROTECTED] Stuart I think you are trying a little to hard. And, although the documentation is not the best, you do have to at least try to read it. As for examples, the entire apps directory can be used as examples. You even have a complete server and complete client as well as openssl which uses a large majority of the functions. Have you even tried running openssl with s_server and s_client? On the winsock issue, why should you care. If you use the normal OpenSSL functions you have no need for socket calls. Perhaps I don't understand what you mean by examples. Ken Ok I'm new to this and my first mail was a bit vague. I downloaded the latest source and compil ed it on Win NT sp6 but I'm low on documentation and could do with some of that. I found the exampl e in the demo directory and noticed it was for unix/linux. I know theres some differences between w in socks and unix/linux stuff..so i was looking for a windows example. I found one that works with ol der static libs. But when I tried to recompile it with the new source it complians abo