[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[h-e-w] GnuTLS in win32

From: Jason Lewis
Subject: [h-e-w] GnuTLS in win32
Date: Tue, 17 Jul 2012 17:06:20 +1000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv: Gecko/20090812 Lightning/0.9 Thunderbird/ Mnenhy/


I've been trying to get gnus to use gnutls in a win32 environment but
I'm not having much success.

in the emacs README.w32 it says:

* GnuTLS support

  In order to support GnuTLS at runtime, Emacs must be able to find
  the relevant DLLs during startup; failure to do so is not an error,
  but GnuTLS won't be available to the running session.

  You can get pre-built binaries (including any required DLL and the
  header files) at

What I am not clear on is where I should be putting the binaries and
DLLs so emacs can find them at launch time?

I have tried adding a path to them in my init.el with:

  (setenv "PATH" (concat "C:/Program Files (x86)/gnutls/bin/;" (getenv
  (setenv "PATH" (concat "C:/Program Files (x86)/gnutls/lib/;" (getenv

I also tried putting the files in the lib directory in the same
directory as emacs.exe

I have been testing it with:

(require 'gnutls)

(setq gnutls-log-level 1)
(open-gnutls-stream "tls" "tls-buffer" "" "imaps")

and in both cases, I get this error:
Debugger entered--Lisp error: (error "GnuTLS not available")
  gnutls-boot(#<process tls<2>> gnutls-x509pki (:priority "NORMAL"
:hostname "" :loglevel 1 :min-prime-bits 256 :trustfiles
("/usr/ssl/certs/ca-bundle.crt") :crlfiles nil :keylist nil
:verify-flags nil :verify-error nil :verify-hostname-error nil
:callbacks nil))
  gnutls-negotiate(:process #<process tls<2>> :type gnutls-x509pki
:hostname "")
  open-gnutls-stream("tls" "tls-buffer" "" "imaps")
  eval((open-gnutls-stream "tls" "tls-buffer" "" "imaps") nil)
  call-interactively(eval-last-sexp nil nil)

I am using GNU Emacs (i386-mingw-nt6.1.7601) of 2012-07-17 on

and gnutls:

C:\Users\jason>"c:\Program Files (x86)\gnutls\bin\gnutls-cli.exe" -v
c:\Program Files (x86)\gnutls\bin\gnutls-cli.exe (GnuTLS) 3.0.9
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Nikos Mavrogiannopoulos.

Any idea how I might make gnutls work?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]