-/* $OpenBSD: obj_dat.c,v 1.70 2023/12/14 14:45:45 tb Exp $ */
+/* $OpenBSD: obj_dat.c,v 1.71 2023/12/14 15:33:09 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);
+
return OBJ_cmp(aobj, &nid_objs[*nid]);
}
{
const unsigned int *nid = b;
+ OPENSSL_assert(*nid >= 0 && *nid < NUM_NID);
+
return strcmp(ln, nid_objs[*nid].ln);
}
{
const unsigned int *nid = b;
+ OPENSSL_assert(*nid >= 0 && *nid < NUM_NID);
+
return strcmp(sn, nid_objs[*nid].sn);
}