equal
deleted
inserted
replaced
216 } |
216 } |
217 |
217 |
218 static BOOLEAN |
218 static BOOLEAN |
219 has_oid(gss_const_OID_set set, gss_const_OID oid) |
219 has_oid(gss_const_OID_set set, gss_const_OID oid) |
220 { |
220 { |
221 for (int i = 0; i < set->count; i++) { |
221 for (size_t i = 0; i < set->count; i++) { |
222 if (is_same_oid(&set->elements[i], oid)) { |
222 if (is_same_oid(&set->elements[i], oid)) { |
223 return TRUE; |
223 return TRUE; |
224 } |
224 } |
225 } |
225 } |
226 return FALSE; |
226 return FALSE; |
255 if (mechs == NULL) { |
255 if (mechs == NULL) { |
256 PP("OID set is NULL"); |
256 PP("OID set is NULL"); |
257 return; |
257 return; |
258 } |
258 } |
259 PP("gss_OID_set.count is %d", (int)mechs->count); |
259 PP("gss_OID_set.count is %d", (int)mechs->count); |
260 for (int i = 0; i < mechs->count; i++) { |
260 for (size_t i = 0; i < mechs->count; i++) { |
261 show_oid(&mechs->elements[i]); |
261 show_oid(&mechs->elements[i]); |
262 } |
262 } |
263 } |
263 } |
264 } |
264 } |
265 |
265 |
1582 { |
1582 { |
1583 PP(">>>> Calling gss_release_oid_set..."); |
1583 PP(">>>> Calling gss_release_oid_set..."); |
1584 if (set == NULL || *set == GSS_C_NO_OID_SET) { |
1584 if (set == NULL || *set == GSS_C_NO_OID_SET) { |
1585 return GSS_S_COMPLETE; |
1585 return GSS_S_COMPLETE; |
1586 } |
1586 } |
1587 for (int i = 0; i < (*set)->count; i++) { |
1587 for (size_t i = 0; i < (*set)->count; i++) { |
1588 delete[] (*set)->elements[i].elements; |
1588 delete[] (*set)->elements[i].elements; |
1589 } |
1589 } |
1590 delete[] (*set)->elements; |
1590 delete[] (*set)->elements; |
1591 delete *set; |
1591 delete *set; |
1592 *set = GSS_C_NO_OID_SET; |
1592 *set = GSS_C_NO_OID_SET; |