0

Is there API in OpenSSL for transfering files over safe SSL connection? Of course, it's not difficult to write some function myself using only SSL_read() and SSL_write() but if there is something already done, it'd be better.

Thanks

Martin Heralecký
  • 5,649
  • 3
  • 27
  • 65
  • You really need an API? Is a tool like [scp](http://en.wikipedia.org/wiki/Secure_copy) not enough? – paddy Jun 08 '15 at 09:43
  • *"Is there API in OpenSSL for transfering files over safe SSL connection?"* - well yes, but you have to write the program. But why not use `wget` or `cURL`? – jww Jun 08 '15 at 10:40

1 Answers1

0

There are libraries that implement some kind of protocol for that task. For example you can use sftp or scp. Give a look at functions like libssh2_sftp_open/libssh2_sftp_write/libssh2_sftp_read. They implement the client side of an sftp transfer. Another options is libssh2_scp_send that used scp.

marom
  • 5,064
  • 10
  • 14