mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
libekmfweb: Fix certificate extensions compare function
Correctly dereference the extensions passed to the compare function. Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
f6ab7f6cda
commit
466ceb02a1
@@ -3230,12 +3230,12 @@ int build_subject_name(X509_NAME **name, const char *rdns[], size_t num_rdns,
|
||||
/**
|
||||
* Compares X509 Extensions by their nid
|
||||
*/
|
||||
static int X509_EXTENSION_compfunc(const X509_EXTENSION * const* a,
|
||||
const X509_EXTENSION * const* b)
|
||||
static int X509_EXTENSION_compfunc(const X509_EXTENSION * const *a,
|
||||
const X509_EXTENSION * const *b)
|
||||
{
|
||||
|
||||
return (OBJ_obj2nid(X509_EXTENSION_get_object((X509_EXTENSION *)a)) -
|
||||
OBJ_obj2nid(X509_EXTENSION_get_object((X509_EXTENSION *)b)));
|
||||
return (OBJ_obj2nid(X509_EXTENSION_get_object((X509_EXTENSION *)*a)) -
|
||||
OBJ_obj2nid(X509_EXTENSION_get_object((X509_EXTENSION *)*b)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user