-/* $OpenBSD: obj_dat.c,v 1.80 2023/12/14 18:32:49 tb Exp $ */
+/* $OpenBSD: obj_dat.c,v 1.81 2023/12/15 01:47:50 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
{
const unsigned int *nid = b;
- OPENSSL_assert(*nid >= 0 && *nid < NUM_NID);
+ OPENSSL_assert(*nid < NUM_NID);
return OBJ_cmp(aobj, &nid_objs[*nid]);
}
{
const unsigned int *nid = b;
- OPENSSL_assert(*nid >= 0 && *nid < NUM_NID);
+ OPENSSL_assert(*nid < NUM_NID);
return strcmp(ln, nid_objs[*nid].ln);
}
{
const unsigned int *nid = b;
- OPENSSL_assert(*nid >= 0 && *nid < NUM_NID);
+ OPENSSL_assert(*nid < NUM_NID);
return strcmp(sn, nid_objs[*nid].sn);
}