The node you are looking for is at
gnutls_dh_set_prime_bits
.