The node you are looking for is at
gnutls_psk_allocate_server_credentials
.