aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_peer/tncc.c
Commit message (Collapse)AuthorAgeFilesLines
* Clean up base64_{encode,decode} pointer typesJouni Malinen2019-11-281-3/+2
| | | | | | | | Allow any pointer to be used as source for encoding and use char * as the return value from encoding and input value for decoding to reduce number of type casts needed in the callers. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* Use os_memdup()Johannes Berg2017-03-071-4/+2
| | | | | | | | | | | | | | | | | | | | | | This leads to cleaner code overall, and also reduces the size of the hostapd and wpa_supplicant binaries (in hwsim test build on x86_64) by about 2.5 and 3.5KiB respectively. The mechanical conversions all over the code were done with the following spatch: @@ expression SIZE, SRC; expression a; @@ -a = os_malloc(SIZE); +a = os_memdup(SRC, SIZE); <... if (!a) {...} ...> -os_memcpy(a, SRC, SIZE); Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* TNCC: Mark functions staticJouni Malinen2016-06-231-8/+9
| | | | | | | These are called through function pointers, so no need to make the function symbols directly available outside this file. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* TNC: Print received IF-TNCCS message as debug ASCII hexdumpJouni Malinen2015-12-241-0/+2
| | | | | | This makes it easier to see what TNCC is processing. Signed-off-by: Jouni Malinen <j@w1.fi>
* TNC: Fix minor memory leak (CID 62848)Philippe De Swert2014-06-121-1/+3
| | | | | | | In tncc_read_config(), the memory allocted for the config did not get freed if an error occured. Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
* TNC: Move common definitions into a shared header fileJouni Malinen2014-05-171-50/+1
| | | | | | No need to duplicate these in multiple places. Signed-off-by: Jouni Malinen <j@w1.fi>
* TNC: Allow tnc_config file path to be replacedJouni Malinen2014-05-171-0/+2
| | | | | | | | | This is for enabling easier testing of TNCS/TNCC functionality as part of the test scripts without having to use the fixed /etc/tnc_config location that could be used by the main system and would require changes within /etc. Signed-off-by: Jouni Malinen <j@w1.fi>
* Add dup_binstr() to help common binary string tasksJouni Malinen2013-04-271-3/+1
| | | | | | | | There are quite a few places in the current implementation where a nul terminated string is generated from binary data. Add a helper function to simplify the code a bit. Signed-hostap: Jouni Malinen <j@w1.fi>
* Remove the GPL notification from files contributed by Jouni MalinenJouni Malinen2012-02-111-8/+2
| | | | | | | Remove the GPL notification text from the files that were initially contributed by myself. Signed-hostap: Jouni Malinen <j@w1.fi>
* TNC: Fix TNC_{TNCC,TNCS}_ReportMessageTypes copy typeJouni Malinen2011-04-131-2/+2
| | | | | | | | The supportedTypes parameter is a list of TNC_MessageType values and the buffer to be copied should use size of TNC_MessageType, not TNC_MessageTypeList. In practice, these are of same length on most platforms, so this is not a critical issue, but anyway, the correct type should be used.
* Fix EAP-TNC peer memory leak on an error pathRyuji2009-06-301-0/+1
|
* Added option to force SoH version 1 (tnc=soh1)Jouni Malinen2008-12-071-4/+3
| | | | | The default version with tnc=soh remains to be 2 which is the currently recommended version in SoH specification.
* Updated the comment on MS-Packet-Info mismatch based on [MS-SOH] infoJouni Malinen2008-10-021-2/+3
|
* SoH: Add null termination for empty url in MS-Quarantine-State.Jouni Malinen2008-10-021-2/+2
|
* SoH: Add all the mandatory attributes into SSoH vendor specific attributeJouni Malinen2008-10-021-5/+54
| | | | | | | This adds all the attributes that are marked as mandatory for SoH in IF-TNCCS-SOH v1.0. MS-Machine-Inventory does not contain correct data (i.e., all version fields are just marked as inapplicable) and MS-MachineName is hardcoded to wpa_supplicant@w1.fi for now.
* Fixed xsi:schemaLocation to use whitespace to separate members of the pair.Jouni Malinen2008-05-061-1/+1
|
* TNC: Added preliminary code for IF-TNCCS-SOH client side supportJouni Malinen2008-04-081-0/+115
| | | | | | | Process SoH Request in SoH EAP Extension method and reply with SoH TLV. The contents of SSoH is not yet complete (i.e., some of the required attributes are still missing). Use of SoH is disabled by default; it can be enabled with tnc=soh in phase1 parameter for PEAP.
* Re-initialize hostapd/wpa_supplicant git repository based on 0.6.3 releaseJouni Malinen2008-02-281-0/+1204