git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] use gcrypt instead of libssl for hash

From
Linus Torvalds <torvalds@osdl.org>
Date
Apr 17, 2005, 17:52 UTC
Message-ID
<Pine.LNX.4.58.0504171039460.7211@ppc970.osdl.org>
In-Reply-To
<87hdi5oet6.dancerj@netfort.gr.jp>
On Sun, 17 Apr 2005, Junichi Uekawa wrote:
> 
> This is the first  time for me to send you a patch; be gentle.
> the following patch allows for use of gcrypt.

Well, libgcrypt seems to be pretty rare out there - I certainly don't have it installed on my machine.

> libssl seems to have a restrictive licensing wrt GPL applications.
It does? I really don't read it that way. 

The openssl license is BSD+mention, but it only kicks in if you _redistribute_ it (and you're not allowed to market things as being openssl based without giving them credit, but that's another thing).

So yes, the openssl license is incompatible with the GPL in the sense that you cannot actually _mix_ the openssl source-code with the GPL source-code. But that's true of a lot of libraries, the normal system C library being just one common example.

The GPL makes explicit mention of the system libraries (which openssl definitely is by now), so it's ok by the GPL . And I don't see how you'd claim that the openssl license doesn't allow it. So it all looks ok by me.

That said, if somebody wants to abstract this out, and have a simple "sign with sha1" interface that can be used with both openssl and libgcrypt (or any other crypt license), then hey, go wild. Or merge the SHA1 code from the kernel, even, and make the project entirely self-sufficient.

But requiring libgcrypt seems silly. Especially as the libgcrypt interfaces are horribly ugly, much more so than the openssl ones - so even if you use libgcrypt, you don't actually want to use it directly, you want to have much nicer wrappers around it.

		Linus
Previous: Junichi UekawaNext: Junichi Uekawa
Message 2 of 13 in “use gcrypt instead of libssl for hash”
  1. use gcrypt instead of libssl for hashJunichi Uekawa, Apr 17, 2005
  2. Linus TorvaldsApr 17, 2005
  3. Junichi UekawaApr 17, 2005
  4. Edgar ToernigApr 18, 2005
  5. Mozilla SHA1 implementationLinus Torvalds, Apr 21, 2005
  6. Edgar ToernigApr 21, 2005
  7. Paul MackerrasApr 22, 2005
  8. Paul MackerrasApr 22, 2005
  9. Linus TorvaldsApr 22, 2005
  10. Linus TorvaldsApr 22, 2005
  11. (anal) Q: Are there any coding styles or development guidelines?Klaus Robert Suetterlin, Apr 22, 2005
  12. Linus TorvaldsApr 22, 2005
  13. Daniel BarkalowApr 22, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.