The node you are looking for is at
gnutls_pkcs11_set_token_function
.