From: stoeri@iap.tuwien.ac.at
Sent: Friday, April 07, 2000 12:44 PM
To: Info-VAX@Mvb.Saic.Com
Subject: Re: SSH for VMS (SSH-Server)

In article <38EDAD72.6C170BB2@bessel.mpip-mainz.mpg.de>, Matthias Koch
<koch@bessel.mpip-mainz.mpg.de> wrote:

> Phillip G Deneault wrote:
> > 
> > I've tried searching everywhere I could but I still can't find a
> > package or even some working ported source.  Has anyone tried porting this
> > to VMS?  I would think this would be something that lots of people would
> > want for secure connections to VMS.
> 
> An SSH-Server is available at
> 
> http://kcgl1.eng.ohio-state.edu/~jonesd/
> 
> I was able to compile it with ssleay (http://www.free.lp.se/ssleay/),
> but not with openssl due to some incompatible calls:
> 
>     result = PEM_read_RSAPrivateKey ( kf, &key, NULL );
> .............^
> %CC-E-TOOFEWARGS, In this statement, "PEM_read_RSAPrivateKey" expects 4
> argument
> s, but 3 are supplied.
> 
> Has anybody got a patch for ssh_server_14 to work with OpenSSL 0.9.5?
> 
> 
> Bye,
> Matthias

There are some patches for the ssh-server to work with openssl-0.9.3 at
Richard Levitte's ftp-site in Sweden.

ftp://ftp.lp.se/patches/osu-sshd/014/

For use with tcpip-services 5.0 you have also to patch the routine
CPORT_UCX.C by inserting some definitions:

After:
#include <UCX$INETDEF.H>
#define sockaddr_in SOCKADDRIN
Insert:
#ifdef TCPIP$INETDEF_LOADED
/* TCPIP 5.0 changed the definitions in ucx$inetdef. */
#define SOCKADDRIN _SOCKADDRIN
#ifndef UCX$C_AF_INET
#define UCX$C_AF_INET TCPIP$C_AF_INET
#endif
#ifndef UCX$C_TCP
#define UCX$C_TCP TCPIP$C_TCP
#endif
#ifndef UCX$C_STREAM
#define UCX$C_STREAM TCPIP$C_STREAM
#endif
#ifndef UCX$C_LINGER
#define UCX$C_LINGER TCPIP$C_LINGER
#endif
#ifndef UCX$C_SOCKOPT
#define UCX$C_SOCKOPT TCPIP$C_SOCKOPT
#endif
#ifndef UCX$C_REUSEADDR
#define UCX$C_REUSEADDR TCPIP$C_REUSEADDR
#endif
#ifndef UCX$C_KEEPALIVE
#define UCX$C_KEEPALIVE TCPIP$C_KEEPALIVE
#endif
#endif

Actually I copied this fix from Dave Jones' OSU-Http-server.

Herbert Stoeri

+---------------------------------+--------------------------------+
| Herbert Stoeri                  | Phone: ++43(1)58801/13460      |
| Institut fuer Allgemeine Physik | Fax:   ++43(1)58801/13499      |
| Technische Universitaet Wien    | email: stoeri@iap.tuwien.ac.at |
| Wiedner Hauptstrasse 8-10       |                                |
| A-1040 Wien                     | http://www.iap.tuwien.ac.at/   |
| Austria                         |                                |
+---------------------------------+--------------------------------+