nsCOMPtr<nsISupports> p2asisupports = do_QueryInterface(p2);
if (p1 == psasisupports) {
Alternatively, one can use the SameCOMIdentity helper function from nsCOMPtr.h:
if (SameCOMIdentity(p1, p2)) {
// equal
}
smime.p7s
Description: S/MIME Cryptographic Signature
