The node you are looking for is at
gnutls_x509_crq_set_key_purpose_oid
.