Fix build when gnutls support is enabled.
PR: 138178 (based on) Submitted by: Robert Kruus <rob.kruus@gmail.com>