forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

OpenSSL and syscall not implemented

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
roby65



Joined: 01 Jun 2008
Posts: 55
Location: Mid Italy

PostPosted: Mon Feb 22, 2010 1:59 am    Post subject: OpenSSL and syscall not implemented Reply with quote

Ok,
i already have the porting of openssl for psp, and i'm porting a lib that uses it.
The library works pretty well, until it needs to do a SSL connection.
Here comes the pain:

Code:

newWritten = SSL_write(mySocketsSsl[idx].ssl, data, (int) (size - written));
            int error = SSL_get_error(mySocketsSsl[idx].ssl,newWritten);
            switch(error)
            {
                case SSL_ERROR_NONE:
                    written += newWritten;
                    data+=newWritten;
               printf("Nessun errore\n");
                    break;
                case SSL_ERROR_WANT_WRITE:
                case SSL_ERROR_WANT_READ:
               printf("WANT_READ/WANT_WRITE\n");
                    continue;
                case SSL_ERROR_ZERO_RETURN:
               printf("0 return\n");
                    break;
            case SSL_ERROR_SSL:
               printf("SSL_ERROR_SSL\n");
               break;
            case SSL_ERROR_WANT_CONNECT:
               printf("SSL_ERROR_WANT_CONNECT\n");
               break;
            case SSL_ERROR_WANT_ACCEPT:
               printf("SSL_ERROR_WANT_ACCEPT\n");
               break;
                case SSL_ERROR_SYSCALL:
               printf("SSL_ERROR_SYSCALL (errno:%d)\n",errno);
               err=ERR_get_error();
               if (err!=0)
               {
                  char buffer[200];
                  ERR_error_string(err,buffer);
                  printf("Error from SSL: %s\n",buffer);
               }
               break;
                default:
               printf("Unk error!\n");
                    break;
            }


The error is always SSL_ERROR_SYSCALL, and errno is 88 that, in errno.h, is:

#define ENOSYS 88 /* Function not implemented */

What function does throw this error?
How to know what's this function not implemented?

Thanks for the help....i'm hitting a wall till weeks...
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group