auth.c (7a9787e1eba95a166265e6a260cf30af04ef0a99) auth.c (025dfdafe77f20b3890981a394774baab7b9c827)
1/* SCTP kernel implementation
2 * (C) Copyright 2007 Hewlett-Packard Development Company, L.P.
3 *
4 * This file is part of the SCTP kernel implementation
5 *
6 * This SCTP implementation is free software;
7 * you can redistribute it and/or modify it under the terms of
8 * the GNU General Public License as published by

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

136 list_del_init(&ep_key->key_list);
137 sctp_auth_shkey_free(ep_key);
138 }
139}
140
141/* Compare two byte vectors as numbers. Return values
142 * are:
143 * 0 - vectors are equal
1/* SCTP kernel implementation
2 * (C) Copyright 2007 Hewlett-Packard Development Company, L.P.
3 *
4 * This file is part of the SCTP kernel implementation
5 *
6 * This SCTP implementation is free software;
7 * you can redistribute it and/or modify it under the terms of
8 * the GNU General Public License as published by

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

136 list_del_init(&ep_key->key_list);
137 sctp_auth_shkey_free(ep_key);
138 }
139}
140
141/* Compare two byte vectors as numbers. Return values
142 * are:
143 * 0 - vectors are equal
144 * < 0 - vector 1 is smaller then vector2
145 * > 0 - vector 1 is greater then vector2
144 * < 0 - vector 1 is smaller than vector2
145 * > 0 - vector 1 is greater than vector2
146 *
147 * Algorithm is:
148 * This is performed by selecting the numerically smaller key vector...
149 * If the key vectors are equal as numbers but differ in length ...
150 * the shorter vector is considered smaller
151 *
152 * Examples (with small values):
153 * 000123456789 > 123456789 (first number is longer)

--- 792 unchanged lines hidden ---
146 *
147 * Algorithm is:
148 * This is performed by selecting the numerically smaller key vector...
149 * If the key vectors are equal as numbers but differ in length ...
150 * the shorter vector is considered smaller
151 *
152 * Examples (with small values):
153 * 000123456789 > 123456789 (first number is longer)

--- 792 unchanged lines hidden ---