Deleted Added
full compact
eap_md5.c (302408) eap_md5.c (337817)
1/*
2 * EAP peer method: EAP-MD5 (RFC 3748 and RFC 1994)
3 * Copyright (c) 2004-2012, Jouni Malinen <j@w1.fi>
4 *
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
7 */
8

--- 88 unchanged lines hidden (view full) ---

97
98 return resp;
99}
100
101
102int eap_peer_md5_register(void)
103{
104 struct eap_method *eap;
1/*
2 * EAP peer method: EAP-MD5 (RFC 3748 and RFC 1994)
3 * Copyright (c) 2004-2012, Jouni Malinen <j@w1.fi>
4 *
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
7 */
8

--- 88 unchanged lines hidden (view full) ---

97
98 return resp;
99}
100
101
102int eap_peer_md5_register(void)
103{
104 struct eap_method *eap;
105 int ret;
106
107 eap = eap_peer_method_alloc(EAP_PEER_METHOD_INTERFACE_VERSION,
108 EAP_VENDOR_IETF, EAP_TYPE_MD5, "MD5");
109 if (eap == NULL)
110 return -1;
111
112 eap->init = eap_md5_init;
113 eap->deinit = eap_md5_deinit;
114 eap->process = eap_md5_process;
115
105
106 eap = eap_peer_method_alloc(EAP_PEER_METHOD_INTERFACE_VERSION,
107 EAP_VENDOR_IETF, EAP_TYPE_MD5, "MD5");
108 if (eap == NULL)
109 return -1;
110
111 eap->init = eap_md5_init;
112 eap->deinit = eap_md5_deinit;
113 eap->process = eap_md5_process;
114
116 ret = eap_peer_method_register(eap);
117 if (ret)
118 eap_peer_method_free(eap);
119 return ret;
115 return eap_peer_method_register(eap);
120}
116}