buf[0] = ( entry->derCrl.len >> 8 ) & 0xff; buf[1] = entry->derCrl.len & 0xff; buf[2] = ( nnlen >> 8 ) & 0xff; buf[3] = nnlen & 0xff;
buf[0] = (unsigned char)( entry->derCrl.len >> 8 ); buf[1] = (unsigned char)entry->derCrl.len; buf[2] = (unsigned char)( nnlen >> 8 ); buf[3] = (unsigned char)nnlen;
EncodeDBCrlEntry(certDBEntryRevocation *entry, PRArenaPool *arena, SECItem *dbitem){    unsigned int nnlen = 0;    unsigned char *buf;      if (entry->url) {  	nnlen = PORT_Strlen(entry->url) + 1;    }        /* allocate space for encoded database record, including space     * for low level header     */    dbitem->len = entry->derCrl.len + nnlen 		+ SEC_DB_ENTRY_HEADER_LEN + DB_CRL_ENTRY_HEADER_LEN;        dbitem->data = (unsigned char *)PORT_ArenaAlloc(arena, dbitem->len);    if ( dbitem->data == NULL) {	PORT_SetError(SEC_ERROR_NO_MEMORY);	goto loser;    }        /* fill in database record */    buf = &dbitem->data[SEC_DB_ENTRY_HEADER_LEN];        buf[0] = ( entry->derCrl.len >> 8 ) & 0xff;    buf[1] = entry->derCrl.len & 0xff;    buf[2] = ( nnlen >> 8 ) & 0xff;    buf[3] = nnlen & 0xff;        PORT_Memcpy(&buf[DB_CRL_ENTRY_HEADER_LEN], entry->derCrl.data,	      entry->derCrl.len);    if (nnlen != 0) {	PORT_Memcpy(&buf[DB_CRL_ENTRY_HEADER_LEN + entry->derCrl.len],	      entry->url, nnlen);    }    return(SECSuccess);loser:    return(SECFailure);}