PK11_HashBuf(SEC_OID_SHA1,fingerprint, derCert->data, derCert->len);
rv = PK11_HashBuf(SEC_OID_SHA1,fingerprint, derCert->data, derCert->len);
SECU_PrintFingerprints(FILE *out, SECItem *derCert, char *m, int level){    unsigned char fingerprint[20];    char *fpStr = NULL;    SECItem fpItem;    /* print MD5 fingerprint */    memset(fingerprint, 0, sizeof fingerprint);    PK11_HashBuf(SEC_OID_MD5,fingerprint, derCert->data, derCert->len);    fpItem.data = fingerprint;    fpItem.len = MD5_LENGTH;    fpStr = CERT_Hexify(&fpItem, 1);    SECU_Indent(out, level);  fprintf(out, "%s (MD5):\n", m);    SECU_Indent(out, level+1); fprintf(out, "%s\n", fpStr);    PORT_Free(fpStr);    fpStr = NULL;    /* print SHA1 fingerprint */    memset(fingerprint, 0, sizeof fingerprint);    PK11_HashBuf(SEC_OID_SHA1,fingerprint, derCert->data, derCert->len);    fpItem.data = fingerprint;    fpItem.len = SHA1_LENGTH;    fpStr = CERT_Hexify(&fpItem, 1);    SECU_Indent(out, level);  fprintf(out, "%s (SHA1):\n", m);    SECU_Indent(out, level+1); fprintf(out, "%s\n", fpStr);    PORT_Free(fpStr);    fprintf(out, "\n");    return 0;}