int i;
unsigned int i;
BufToHex(SECItem *outbuf){    int len = outbuf->len * 2 +1;    char *string, *ptr;    int i;    string = PORT_Alloc(len);    ptr = string;    for (i=0; i < outbuf->len; i++) {	*ptr++ = ToDigit(outbuf->data[i] >> 4);	*ptr++ = ToDigit(outbuf->data[i] & 0xf);    }    *ptr = 0;    return string;}