The node you are looking for is at
gnutls_handshake_get_last_out
.