From: Tom E. <to...@gr...> - 2010-07-21 19:34:29
|
Hi Chris et al, I would like to feed this back into the community; what are your thoughts? I have taken xsupplicant 2.2.0 und have successfully split it into two parts: - a library libxsup (containing mainly the eap_types) - an xsupplicant application. With this change, anyone who needs to add eap support to an application can use open1x as well. Thanks Tom |
From: Josh H. <Jos...@ja...> - 2010-07-21 20:17:02
|
Tom, > I have taken xsupplicant 2.2.0 und have successfully split it into two parts: > - a library libxsup (containing mainly the eap_types) > - an xsupplicant application. Great idea! As it happens, I might have a use for this. Have you documented your API? Josh. JANET(UK) is a trading name of The JNT Association, a company limited by guarantee which is registered in England under No. 2881024 and whose Registered Office is at Lumen House, Library Avenue, Harwell Science and Innovation Campus, Didcot, Oxfordshire. OX11 0SG |
From: Tom E. <to...@gr...> - 2010-07-21 19:59:13
|
No, I have not documented the API yet, I am waiting to see how much interest there is. The API but it is fairly straightforward, just these methods below. The client's main work is to fill one big structure, struct xsup_session_config, which contains all needed authentication material for the eap method it wants to use. /* register callbacks for eap data / success / failure */ xsup_returntype xsup_setup_library(const struct xsup_library_config* conf); xsup_returntype xsup_create_session(const struct xsup_session_config* conf, xsup_cookie cookie); void xsup_destroy_session(xsup_cookie cookie); /* eap payload */ xsup_returntype xsup_received_eap_payload(xsup_cookie cookie, const uint8_t* data, size_t length); Josh Howlett wrote: > Tom, > >> I have taken xsupplicant 2.2.0 und have successfully split it into two parts: >> - a library libxsup (containing mainly the eap_types) >> - an xsupplicant application. > > Great idea! > > As it happens, I might have a use for this. Have you documented your API? > > Josh. > > JANET(UK) is a trading name of The JNT Association, a company limited > by guarantee which is registered in England under No. 2881024 > and whose Registered Office is at Lumen House, Library Avenue, > Harwell Science and Innovation Campus, Didcot, Oxfordshire. OX11 0SG > -- This e-mail and any of its attachments may contain proprietary information, which is privileged, confidential or subject to copyright belonging to Grid Net, Inc. This e-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, copying or action taken in relation to the contents of this e-mail is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately and permanently delete. |
From: Josh H. <Jos...@ja...> - 2010-07-21 20:12:58
|
> /* eap payload */ > xsup_returntype xsup_received_eap_payload(xsup_cookie cookie, const uint8_t* > data, size_t length); What does 'data' get filled with? Josh. JANET(UK) is a trading name of The JNT Association, a company limited by guarantee which is registered in England under No. 2881024 and whose Registered Office is at Lumen House, Library Avenue, Harwell Science and Innovation Campus, Didcot, Oxfordshire. OX11 0SG |
From: Tom E. <to...@gr...> - 2010-07-21 20:42:50
|
Josh Howlett wrote: >> /* eap payload */ >> xsup_returntype xsup_received_eap_payload(xsup_cookie cookie, const uint8_t* >> data, size_t length); > > What does 'data' get filled with? You pass in an eap packet coming from the peer. Then a callback is invoked by the library with the eap packet going to the peer. > > Josh. > > JANET(UK) is a trading name of The JNT Association, a company limited > by guarantee which is registered in England under No. 2881024 > and whose Registered Office is at Lumen House, Library Avenue, > Harwell Science and Innovation Campus, Didcot, Oxfordshire. OX11 0SG > -- This e-mail and any of its attachments may contain proprietary information, which is privileged, confidential or subject to copyright belonging to Grid Net, Inc. This e-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, copying or action taken in relation to the contents of this e-mail is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately and permanently delete. |
From: Josh H. <Jos...@ja...> - 2010-07-21 20:49:04
|
> You pass in an eap packet coming from the peer. > > Then a callback is invoked by the library with the eap packet going to the > peer. Ok, so the application has to provide something equivalent to an EAP lower layer to talk to the peer? It then uses this method to exchange EAP packets with the library? Josh. JANET(UK) is a trading name of The JNT Association, a company limited by guarantee which is registered in England under No. 2881024 and whose Registered Office is at Lumen House, Library Avenue, Harwell Science and Innovation Campus, Didcot, Oxfordshire. OX11 0SG |
From: Tom E. <to...@gr...> - 2010-07-21 20:53:11
|
Josh Howlett wrote: >> You pass in an eap packet coming from the peer. >> >> Then a callback is invoked by the library with the eap packet going to the >> peer. > > Ok, so the application has to provide something equivalent to an EAP lower layer to talk to the peer? It then uses this method to exchange EAP packets with the library? Exactly. (For example, I have tested the xsuplib using the modified xsupplicant application: lower layer was the radius protocol and the peer was a freeradius server) > > Josh. > > JANET(UK) is a trading name of The JNT Association, a company limited > by guarantee which is registered in England under No. 2881024 > and whose Registered Office is at Lumen House, Library Avenue, > Harwell Science and Innovation Campus, Didcot, Oxfordshire. OX11 0SG > |
From: Josh H. <Jos...@ja...> - 2010-07-21 21:02:11
|
> > Ok, so the application has to provide something equivalent to an EAP lower > layer to talk to the peer? It then uses this method to exchange EAP packets > with the library? > > Exactly. How does the API expose data that the EAP method exports, like names and keys? Josh. JANET(UK) is a trading name of The JNT Association, a company limited by guarantee which is registered in England under No. 2881024 and whose Registered Office is at Lumen House, Library Avenue, Harwell Science and Innovation Campus, Didcot, Oxfordshire. OX11 0SG |
From: Tom E. <to...@gr...> - 2010-07-21 21:12:23
|
Josh Howlett wrote: >>> Ok, so the application has to provide something equivalent to an EAP lower >> layer to talk to the peer? It then uses this method to exchange EAP packets >> with the library? >> >> Exactly. > > How does the API expose data that the EAP method exports, like names and keys? using the callback on success, prototype for all the callbacks is shown below: struct xsup_library_config { void (*notify_eap_data) (xsup_cookie cookie, const uint8_t* data, size_t length); void (*notify_success) (xsup_cookie cookie, const uint8_t* keymaterial, size_t length); void (*notify_failure) (xsup_cookie cookie, xsup_returntype reasoncode); }; > > Josh. > > JANET(UK) is a trading name of The JNT Association, a company limited > by guarantee which is registered in England under No. 2881024 > and whose Registered Office is at Lumen House, Library Avenue, > Harwell Science and Innovation Campus, Didcot, Oxfordshire. OX11 0SG > |
From: Tom E. <to...@gr...> - 2010-07-22 00:10:13
|
Sending attachments to the list doesn't work. On open1x, is there a place I can upload the lib for anyone interested to have a look? I would like to use LGPL for the lib. If the authors of the existing xsupplicant code (which uses a dual license) objected to that, would you please let me know? Tom Enderes wrote: > > Josh Howlett wrote: >>>> Ok, so the application has to provide something equivalent to an EAP lower >>> layer to talk to the peer? It then uses this method to exchange EAP packets >>> with the library? >>> >>> Exactly. >> How does the API expose data that the EAP method exports, like names and keys? > > using the callback on success, prototype for all the callbacks is shown below: > > struct xsup_library_config { > void (*notify_eap_data) (xsup_cookie cookie, const uint8_t* data, size_t length); > void (*notify_success) (xsup_cookie cookie, const uint8_t* keymaterial, size_t > length); > void (*notify_failure) (xsup_cookie cookie, xsup_returntype reasoncode); > }; > > > >> Josh. >> >> JANET(UK) is a trading name of The JNT Association, a company limited >> by guarantee which is registered in England under No. 2881024 >> and whose Registered Office is at Lumen House, Library Avenue, >> Harwell Science and Innovation Campus, Didcot, Oxfordshire. OX11 0SG >> > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Open1x-developers mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/open1x-developers -- This e-mail and any of its attachments may contain proprietary information, which is privileged, confidential or subject to copyright belonging to Grid Net, Inc. This e-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, copying or action taken in relation to the contents of this e-mail is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately and permanently delete. |
From: Tom E. <to...@gr...> - 2010-08-28 01:55:34
|
Hi Josh, the licensing issue has been resolved, we are releasing under the same Dual license which XSupplicant uses. A first version, 0.4.0, of the xsupplicant library is available @ http://pub.grid-net.com/xsuplib/ . Let me know if you have any input for the next version. Right now, there is no easy way to run the xsupplicant library in this package; I need to figure out how to tackle this. (I myself use a customized radius server as well as version of XSupplicant in direct-radius mode which has been modified to use the xsupplicant library) Cheers Tom Tom Enderes wrote: > Sending attachments to the list doesn't work. On open1x, is there a place I can > upload the lib for anyone interested to have a look? > > I would like to use LGPL for the lib. If the authors of the existing xsupplicant > code (which uses a dual license) objected to that, would you please let me know? > > Tom Enderes wrote: >> Josh Howlett wrote: >>>>> Ok, so the application has to provide something equivalent to an EAP lower >>>> layer to talk to the peer? It then uses this method to exchange EAP packets >>>> with the library? >>>> >>>> Exactly. >>> How does the API expose data that the EAP method exports, like names and keys? >> using the callback on success, prototype for all the callbacks is shown below: >> >> struct xsup_library_config { >> void (*notify_eap_data) (xsup_cookie cookie, const uint8_t* data, size_t length); >> void (*notify_success) (xsup_cookie cookie, const uint8_t* keymaterial, size_t >> length); >> void (*notify_failure) (xsup_cookie cookie, xsup_returntype reasoncode); >> }; >> >> >> >>> Josh. >>> >>> JANET(UK) is a trading name of The JNT Association, a company limited >>> by guarantee which is registered in England under No. 2881024 >>> and whose Registered Office is at Lumen House, Library Avenue, >>> Harwell Science and Innovation Campus, Didcot, Oxfordshire. OX11 0SG >>> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Sprint >> What will you do first with EVO, the first 4G phone? >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> _______________________________________________ >> Open1x-developers mailing list >> Ope...@li... >> https://lists.sourceforge.net/lists/listinfo/open1x-developers > |
From: Josh H. <Jos...@ja...> - 2010-07-22 15:19:53
|
Tom, What platforms have you tested this on? Josh. JANET(UK) is a trading name of The JNT Association, a company limited by guarantee which is registered in England under No. 2881024 and whose Registered Office is at Lumen House, Library Avenue, Harwell Science and Innovation Campus, Didcot, Oxfordshire. OX11 0SG |
From: Tom E. <to...@gr...> - 2010-07-22 18:05:54
|
Josh Howlett wrote: > Tom, > > What platforms have you tested this on? So far, only on linux, only EAP-TLS; what are you looking for? > > Josh. > > JANET(UK) is a trading name of The JNT Association, a company limited > by guarantee which is registered in England under No. 2881024 > and whose Registered Office is at Lumen House, Library Avenue, > Harwell Science and Innovation Campus, Didcot, Oxfordshire. OX11 0SG > |