OpenSSL and syscall not implemented

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
roby65
Posts: 52
Joined: Sun Jun 01, 2008 9:12 pm
Location: Mid Italy
Contact:

OpenSSL and syscall not implemented

Post by roby65 »

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: Select all

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...
Post Reply