added some to server-psk.c for psk