Adapt code to gnupg 1.1.7 API.