Hello,


did anybody already try to use a bluetooth socket in an SSL structure? I am using the TLS protocol, which works fine through the Lan interface between my Pda and my desktop. But my aim is to use it upon bluetooth sockets.

I open a bluetooth socket using L2CAP, and my socket type is SOCK_SEQPACKET. The Pda is opening the connections with the desktop (listen, accept, etc...), as the log is showing it:

Feb 11 13:55:13 familiar user.info HandlerBB: Connected [imtu 672, omtu 672, flush_to 65535]

In my first version I used this link to send in both directions some strings. It works fine. Now I want to use the TLS protocol.

All the creation of the SSL structure is working fine, but the program crashes when I do the call to SSL_set_fd (on the Pda it crashes as well).

The man page of SSL_set_fd explains that a BIO is created as interface between the socket and the SSL structure. Then I tried to do it "manually":

acc = BIO_new_fd(bt_socket, BIO_NOCLOSE );
 if (!acc) puts("new BIO refused");
 puts("Debug 6")
 SSL_set_bio(*pssl, acc, acc);

But the call to SSL_set_bio crashes as well...
Result of "strace":
write(1, "Debug 6\n", 8)                = 8
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

uname -a, gives :
Desktop: Linux dede 2.4.24 #1 Wed Jan 14 17:51:28 EST 2004 i686 GNU/Linux (Debian unstable)
Pda: Linux familiar 2.4.19-rmk6-pxa1-hh33-vk #2 Thu Dec 11 14:05:06 EST 2003 armv5tel unknown


bluez-utils,libbluetooth1 2.5
 bluez-sdp,libbluetooth1 2.5
 bluez-pin,libbluetooth1 2.5
 bluez-pan,libbluetooth1 2.3
 bluez-hcidump,libbluetooth1 2.2

sur le Pda :    libssl0.9.7_0.9.7c-5_arm
sur le Desktop : openssl  0.9.7c-5

Does anyone have an idea what is going on? I have tried to find if some type of socket was not allowed for the TLS, but found nothing saying that we have to use a specific socket type. The socket of bluetooth has a limited pdu of maximum 64kB, could that be a reason?

Thanks

Ronan


______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]

Reply via email to