Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working with SSL? #20

Open
Tetrapyriarbus opened this issue Apr 21, 2017 · 0 comments
Open

Working with SSL? #20

Tetrapyriarbus opened this issue Apr 21, 2017 · 0 comments

Comments

@Tetrapyriarbus
Copy link

Tetrapyriarbus commented Apr 21, 2017

Sorry to open this here as an issue, but I've been struggling to get this working with SSL and I'm not sure if this is the right place to ask for help. I'm using Visual Studio 2005 to compile ftplibpp and openssl to work on Windows CE.
ftp=new ftplib();
if(ftp->Connect(":990")) {
ftp->SetCallbackCertFunction(CertificateCallback);
ret=ftp->NegotiateEncryption();

NegotiateEncryption stage which is returning with -1 and sometimes popping up a notepad editor with the text "write: errno=0".

Looking into the source of the NegotiateEncrypticon function, it looks like BIO_new_socket is succeeding and it's failing when it calls SSL_connect, but I'm not sure why. Has anyone else successfully connected to ftps and can give me some pointers?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant