I have a programm that use ssl_write , but when i try to do send 2 ssl_write one after the other , the first one works the second one not and return me segmentation fault , how i can sent multiple ssl_write to the same server one after the other ?
char sendmessage[395];
printf("%s\n","move up 1");
sprintf(sendmessage,moveupdown,stok,5);
printf("ssl write ret %d\n",SSL_write(conn, sendmessage, strlen(sendmessage) ));
sprintf(sendmessage,stockRequest,"hello");
SSL_write(conn, sendmessage, strlen(sendmessage) );