This /may/ be suitable for vxworks, it may be not.

First off, the examples are not for windows users, but for
UNIX/Windows/etc. operating systems which include file I/O (more
specifically: fopen/fread/fwrite/fclose and open/read/write/close C
run-time library support).

Formulating it this way automatically leads to a viable solutions for
those operating systems which do NOT offer such features (embedded
systems come to mind here). What I have done in the past is provide
simple emulation code on such platforms. Code which exhibits the same
API as your regular file I/O on UNIX/Windows/... would, but has your
own custom implementation underneath. If your system does not come
with a file system AT ALL, you can still do this:
convert all the 'files' to C byte arrays (some you can 'compile' them
and write them in ROM) plus code to read this data when called for
through your own implementation of the previously mentioned file I/O
interface.

You can even perform the same 'trickery' on regular (UNIX/Win/...)
machines by overriding the run-time library when compiling and linking
your (test) executables. This is left as an exercise though. ;-)


HTH,

Ger



On Mon, Jul 28, 2008 at 4:33 PM, shlomi katz wrote:
> Hi all
>
> I am new to the SSL and trying to make it work on vxworks6.4
>
>
>
> I do not understand how to create a cert and key files for vxworks all
> samples are for window user.
>
>
>
> Are there any vxworks user here that implement the SSL ?
>
>
>
> how do I create the file in order to give it to the following function call?
>
>
>
> if (SSL_CTX_use_certificate_file(ctx, "prcert.pem", SSL_FILETYPE_PEM) <= 0)
>
> {
>
> printf("SSL_CTX_use_certificate_file: error \r\n");
>
> }
>
>
>
> if(SSL_CTX_use_PrivateKey_file(ctx, "prkey.pem", SSL_FILETYPE_PEM) <0)
>
> {
>
> printf("SSL_CTX_use_PrivateKey_file: error \r\n");
>
> }
>
>
>
>
>
> I will be happy to get an example for the implementation
>
>
>
> Thank
>
>




--
Met vriendelijke groeten / Best regards,

Ger Hobbelt

--------------------------------------------------
web: http://www.hobbelt.com/
http://www.hebbut.net/
mail: ger@hobbelt.com
mobile: +31-6-11 120 978
--------------------------------------------------
__________________________________________________ ____________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager majordomo@openssl.org