X-Git-Url: https://git.hcoop.net/jackhill/guix/guix.git/blobdiff_plain/1abdc167d3a602e3a35374762ac1ed4d7e9f0593..967cfd18f666f24ae9cbad14ea8e6921c10cba81:/gnu/packages/tls.scm diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm index 9abaabad89..efc1190980 100644 --- a/gnu/packages/tls.scm +++ b/gnu/packages/tls.scm @@ -323,10 +323,45 @@ required structures.") (license license:openssl) (home-page "http://www.openssl.org/"))) +(define-public openssl-next + (package + (inherit openssl) + (name "openssl") + (version "1.1.0") + (source (origin + (method url-fetch) + (uri (list (string-append "ftp://ftp.openssl.org/source/" + name "-" version ".tar.gz") + (string-append "ftp://ftp.openssl.org/source/old/" + (string-trim-right version char-set:letter) + "/" name "-" version ".tar.gz"))) + (patches (search-patches "openssl-1.1.0-c-rehash-in.patch")) + (sha256 + (base32 + "10lcpmnxap9nw8ymdglys93cgkwd1lf1rz4fhq5whwhlmkwrzipm")))) + (outputs '("out" + "doc" ;1.3MiB of man3 pages + "static")) ; 5.5MiB of .a files + (arguments + (substitute-keyword-arguments (package-arguments openssl) + ((#:phases phases) + `(modify-phases ,phases + (delete 'patch-tests) ; These two phases are not needed by + (delete 'patch-Makefile.org) ; OpenSSL 1.1.0. + + (add-after 'configure 'patch-runpath + (lambda* (#:key outputs #:allow-other-keys) + (let ((lib (string-append (assoc-ref outputs "out") "/lib"))) + (substitute* "Makefile.shared" + (("\\$\\$\\{SHAREDCMD\\} \\$\\$\\{SHAREDFLAGS\\}") + (string-append "$${SHAREDCMD} $${SHAREDFLAGS}" + " -Wl,-rpath," lib))) + #t))))))))) + (define-public libressl (package (name "libressl") - (version "2.3.6") + (version "2.4.2") (source (origin (method url-fetch) @@ -335,7 +370,7 @@ required structures.") version ".tar.gz")) (sha256 (base32 - "1yipsp1ici207nbminbf1knh252kzvqg036v0xpx0fw1wrwlg2im")))) + "1qyrcyzrrn6r9cqvm66ib72qyr65q4hrdyiq1vb24a6nwmwdg1sz")))) (build-system gnu-build-system) (native-search-paths ;; FIXME: These two variables must designate a single file or directory @@ -530,3 +565,92 @@ finally access to the SSL api of the SSLeay/OpenSSL package so you can write servers or clients for more complicated applications.") (license (package-license perl)) (home-page "http://search.cpan.org/~mikem/Net-SSLeay-1.66/"))) + +(define-public perl-crypt-openssl-rsa + (package + (name "perl-crypt-openssl-rsa") + (version "0.28") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://cpan/authors/id/P/PE/PERLER/Crypt-OpenSSL-RSA-" + version + ".tar.gz")) + (sha256 + (base32 + "1gnpvv09b2gpifwdzc5jnhama3d1a4c39lzj9hcaicsb8rvzjmsk")))) + (build-system perl-build-system) + (inputs + `(("perl-crypt-openssl-bignum" ,perl-crypt-openssl-bignum) + ("perl-crypt-openssl-random" ,perl-crypt-openssl-random) + ("openssl" ,openssl))) + (arguments perl-crypt-arguments) + (home-page + "http://search.cpan.org/dist/Crypt-OpenSSL-RSA") + (synopsis + "RSA encoding and decoding, using the openSSL libraries") + (description "Crypt::OpenSSL::RSA does RSA encoding and decoding (using the +OpenSSL libraries).") + (license (package-license perl)))) + +(define perl-crypt-arguments + `(#:phases (modify-phases %standard-phases + (add-before 'configure 'patch-Makefile.PL + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "Makefile.PL" + (("'LIBS'.*=>.*") (string-append "'LIBS' => ['-L" + (assoc-ref inputs "openssl") + "/lib -lcrypto'],"))) + #t))))) + +(define-public perl-crypt-openssl-bignum + (package + (name "perl-crypt-openssl-bignum") + (version "0.06") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://cpan/authors/id/K/KM/KMX/Crypt-OpenSSL-Bignum-" + version + ".tar.gz")) + (sha256 + (base32 + "05yzrdglrrzp191krf77zrwfkmzrfwrsrx1vyskbj94522lszk67")))) + (build-system perl-build-system) + (inputs `(("openssl" ,openssl))) + (arguments perl-crypt-arguments) + (home-page + "http://search.cpan.org/dist/Crypt-OpenSSL-Bignum") + (synopsis + "OpenSSL's multiprecision integer arithmetic in Perl") + (description "Crypt::OpenSSL::Bignum provides multiprecision integer +arithmetic in Perl.") + ;; At your option either gpl1+ or the Artistic License + (license (package-license perl)))) + +(define-public perl-crypt-openssl-random + (package + (name "perl-crypt-openssl-random") + (version "0.11") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://cpan/authors/id/R/RU/RURBAN/Crypt-OpenSSL-Random-" + version + ".tar.gz")) + (sha256 + (base32 + "0yjcabkibrkafywvdkmd1xpi6br48skyk3l15ni176wvlg38335v")))) + (build-system perl-build-system) + (inputs `(("openssl" ,openssl))) + (arguments perl-crypt-arguments) + (home-page + "http://search.cpan.org/dist/Crypt-OpenSSL-Random") + (synopsis + "OpenSSL/LibreSSL pseudo-random number generator access") + (description "Crypt::OpenSSL::Random is a OpenSSL/LibreSSL pseudo-random +number generator") + (license (package-license perl))))