security.c: Use int32_t for security IDs