How can I use SSL Handshaking?

136 views
Skip to first unread message

TORIWORKS

unread,
Feb 2, 2010, 1:57:00 AM2/2/10
to android-ndk
I got a message below.

>>> warning: openssl/ssl.h: No such file or directory

How can I use SSL Handshaking? Please give me a tip to solve this
problem. Thank you!!!

David Turner

unread,
Feb 2, 2010, 2:38:25 PM2/2/10
to andro...@googlegroups.com
build the openssl sources into your  NDK project ?


--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.


TORIWORKS

unread,
Feb 2, 2010, 10:19:24 PM2/2/10
to android-ndk
Yes, I'm trying to make NDK project including openssl library.

So, how can I include openssl library to my project? As I know ANDROID
system library includes "SSL". How to use? How to include?
Please give me a tip or a bit of source or a hint...

Thank you so much.


On 2월3일, 오전4시38분, David Turner <di...@android.com> wrote:
> build the openssl sources into your  NDK project ?
>

> On Mon, Feb 1, 2010 at 10:57 PM, TORIWORKS <toriwo...@gmail.com> wrote:
> > I got a message below.
>
> > >>> warning: openssl/ssl.h: No such file or directory
>
> > How can I use SSL Handshaking? Please give me a tip to solve this
> > problem. Thank you!!!
>
> > --
> > You received this message because you are subscribed to the Google Groups

> > "android-ndk" group.> To post to this group, send email toandr...@googlegroups.com.
> > To unsubscribe from this group, send email to>android-ndk...@googlegroups.com<android-ndk%2Bunsu...@googlegroups.com>

ndesmoul

unread,
Feb 3, 2010, 4:31:21 AM2/3/10
to android-ndk
The NDK gives access only to a subset of the system library, and
OpenSSL is not on the list.
I'm afraid you'll have to compile your own OpenSSL lib, then write the
"glue" code to call the the needed C code from your Java application.

You can get OpenSSL in the Android GIT, but you'll need to slightly
edit the config files to compile it.

But it may be simplier to use the javax.net.ssl package:
http://developer.android.com/reference/javax/net/ssl/package-summary.html

(I don't know if theses classes uses OpenSSL.)


Reply all
Reply to author
Forward
0 new messages