Gcr.Certificate.compare

function compare(first: Gcr.Comparable, other: Gcr.Comparable): Number(gint) {
    // Gjs wrapper for gcr_certificate_compare()
}
  

Compare one certificate against another. If the certificates are equal then zero is returned. If one certificate is null or not a certificate, then a non-zero value is returned.

The return value is useful in a stable sort, but has no user logical meaning.

first

the certificate to compare

other

the certificate to compare against

Returns

zero if the certificates match, non-zero otherwise.