Author Topic: MbedTLS licensing terms  (Read 5995 times)

0 Members and 1 Guest are viewing this topic.

Offline peter-hTopic starter

  • Super Contributor
  • ***
  • Posts: 6166
  • Country: gb
  • Doing electronics since the 1960s...
MbedTLS licensing terms
« on: October 20, 2025, 08:52:50 pm »
There is a debate running on this topic on the MbedTLS mailing list.

Somebody (not me) asked how to be sure to comply when using the code in some IoT product. However, the devs don't want to be drawn on interpreting their terms (which run into hundreds of lines).

The crux of the matter is that the code is free to use commercially but "somehow" you have to comply with the license terms. How the hell are you going to do that when selling a product which does not come with source code?

Somebody at MbedTLS made the decision to release the code under whatever license. So they must have been thinking something... yet now they don't want to say.

Well, unless they looked at various licenses and picked the longest one :)

I have seen only bits of the sources for MbedTLS and those were either very old open source stuff which has been all over the internet for decades (like DES, AES, various hashes) or the "X509" code written by the team.

Releasing the former under any license is meaningless, and for releasing the latter you need to decide whether to allow commercial use without the user paying you. And clearly they have decided affirmatively on that one.

Everything else is legally meaningless. Is anyone going to enforce the preservation of 1000 lines of some license text, especially given that a commercial product is obviously 100% binary.

Then you have STM bundling MbedTLS with Cube IDE and there is yet more license text in there, which every Cube user will totally ignore otherwise the tool is useless except to hobbyists.

The overriding principle in creative work is that the author retains copyright (unless assigned, which I am sure they have not done) and nobody has any problem with that, but in "open source" software anybody is free to use it for any purpose whatsoever. One can have a license stipulating that the author is credited but how do you do that
on a commercially sold "box"? Obviously, you can't. One can have a note in the user manual that Product X contains open source code "MbedTLS" and then anyone interested can google the terms. But the terms will be meaningless to the user too.

One can also have funny license terms e.g. prohibiting modification of the software. Exactly nobody is going to respect that IF they want a working product! Most devs spend weeks or months on google (Claude is a "better google" nowadays) looking for bug fixes. This is especially relevant given the version increment frequency of MbedTLS which makes it impossible to release a product with the latest version. At best one will be a year or two behind.

Doesn't everybody actually using this code just ignore it? What else can they do? It is free for commercial use after all.
« Last Edit: October 20, 2025, 09:46:19 pm by peter-h »
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 12514
  • Country: us
    • Personal site
Re: MbedTLS licensing terms
« Reply #1 on: October 20, 2025, 10:07:36 pm »
I though Mbed TLS was under a dual license - Apache-2.0 and GPL-2.0 (or later). Apache-2.0 allows commercial use, and it pretty clear on the compliance requirements.

The credit is very simple. You either place the required disclosure somewhere in the UI if a product has UI. Or include with the printed documentation along with the product. This is a commonly accepted way of doing this.

And whether to respect the license terms is up to you. The statements that nobody is going to be doing something are strange. You and your 10 units sold product may ignore it, but large companies typically like to comply with licensing terms.
« Last Edit: October 21, 2025, 12:55:31 am by ataradov »
Alex
 

Offline peter-hTopic starter

  • Super Contributor
  • ***
  • Posts: 6166
  • Country: gb
  • Doing electronics since the 1960s...
Re: MbedTLS licensing terms
« Reply #2 on: October 21, 2025, 06:22:05 am »
Quote
You either place the required disclosure somewhere in the UI if a product has UI. Or include with the printed documentation along with the product. This is a commonly accepted way of doing this.

This is exactly what I concluded and I have seen some examples previously. But for some reason they won't just say that.

Would it be sufficient to say the "product contains MbedTLS whose licensing terms can be found online"?
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 

Offline hans

  • Super Contributor
  • ***
  • Posts: 2001
  • Country: 00
Re: MbedTLS licensing terms
« Reply #3 on: October 21, 2025, 08:23:30 am »
I'm not a lawyer.. but I think many companies like to mention these licenses, because you don't want to be at the mercy of another party whether you have to spend hundreds of thousands on legal fees. That sounds like a bad trade and an easy button to wind some people up real quick.
At the end of the day, the average customer isn't going to care if you used MbedTLS or dwarfs to handle TLS connections. So may as well put it in some print alongside other legal fluff that nobody actually reads.

I'm uncertain if simply referring to "whose terms can be found  at [.. external source ..]". If external source changes, and you're now not compliant in someway, that sounds like allowing yourself to be backstabbed if MbedTLS goes rogue even if you haven't touched the newer version of MbedTLS at all.
But I'm unsure if its beneficial to explicitly mention which version or license terms you're referring to. Like I said, I'm not a lawyer.
 

Offline gmb42

  • Frequent Contributor
  • **
  • Posts: 335
  • Country: gb
Re: MbedTLS licensing terms
« Reply #4 on: October 21, 2025, 09:11:45 am »

The overriding principle in creative work is that the author retains copyright (unless assigned, which I am sure they have not done) and nobody has any problem with that, but in "open source" software anybody is free to use it for any purpose whatsoever.

This is not true, open source is invariably licensed in some way and users of that code must respect the license terms.
 
The following users thanked this post: Whales, newbrain, BBBbbb

Online ejeffrey

  • Super Contributor
  • ***
  • Posts: 4877
  • Country: us
Re: MbedTLS licensing terms
« Reply #5 on: October 21, 2025, 09:16:48 am »
but in "open source" software anybody is free to use it for any purpose whatsoever.

That's absolutely not true at all.  You are free to use it within the terms of the license. 

Quote
One can have a license stipulating that the author is credited but how do you do that
on a commercially sold "box"? Obviously, you can't.

Obviously you can.  Lots of software does this.  For instance if the product has and install wizard there will often be a step into the flow where it lists the open source software in use and their licenses. A hardware device like a router would have an info page in the web UI.

Your opinion about whether such acknowledgement is meaningful is not particularly relevant. 
 
The following users thanked this post: nctnico, Whales, newbrain, 5U4GB

Online ejeffrey

  • Super Contributor
  • ***
  • Posts: 4877
  • Country: us
Re: MbedTLS licensing terms
« Reply #6 on: October 21, 2025, 09:28:51 am »
Somebody (not me) asked how to be sure to comply when using the code in some IoT product. However, the devs don't want to be drawn on interpreting their terms (which run into hundreds of lines).

That's totally normal.  There are probably two reasons for this.  The first is that they don't want to give legal advice in general.  The license terms are there, they are pretty easy to understand.  But if you need help understanding them or how they apply to you (including your country specific limitations on copyright law) then you need to hire your own lawyer.

The second reason is that the developers, since they are potentially official representatives of the owner, anything they say about it could be construed as superceding the license.  And it could be construed as such not just by the person asking, but anyone else reading the forum.  This is especially true if projects with a commercial aspect such as paid support contacts.

So it's totally normal for developers of open source projects to refuse to answer questions about licensing in a public forum.  If you need extra handholding you need to talk to the business folks.
 

Offline peter-hTopic starter

  • Super Contributor
  • ***
  • Posts: 6166
  • Country: gb
  • Doing electronics since the 1960s...
Re: MbedTLS licensing terms
« Reply #7 on: October 21, 2025, 09:35:03 am »
Gosh there are some high horses here :)

What if there is no UI?

As an added angle, the stuff in question comes bundled with Cube IDE, so STM would have gone through this, and if commercial use was not allowed then the stuff would be useless except to hobbyists.

There is

MbedTLS
LWIP
FatFS
USB VCP/MSC

Back to MbedTLS, you have

/*
 *  FIPS-197 compliant AES implementation
 *
 *  Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
 *  SPDX-License-Identifier: Apache-2.0
 *
 *  Licensed under the Apache License, Version 2.0 (the "License"); you may
 *  not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 *  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *
 *  This file is part of mbed TLS (https://tls.mbed.org)
 */

and the text at https://www.apache.org/licenses/LICENSE-2.0 basically says you can do what you like with it, provided you retain the text in your sources.

In particular it says

You must give any other recipients of the Work or Derivative Works a copy of this License

If your product has no UI, it sounds like you have to publish the text somewhere where people can find it. The Q is where is "adequate".

LWIP is similar but more explicit on this angle:

Redistributions in binary form must reproduce the above copyright notice,
 *    this list of conditions and the following disclaimer in the documentation
 *    and/or other materials provided with the distribution.


FatFS is same as above, at https://opensource.org/license/BSD-3-Clause

So URLs to the above in the user manual should do it, for a "black box" product.

FWIW, when the particular project I started on was first formulated, the licenses were examined and all allowed commercial use. The reason for my questions in this thread was that someone else went down this road, with a proposed "black box" product, and was unable to get any answers, which I thought a bit strange. The person could have been told "read the license at URL x and you will find that you can comply with the following text in your user manual".

Re open source sw with a commercial use prohibition, yes I am sure there must be some out there, but I've never used any of it.

The other thing I wonder about is whether anybody has ever been sued under some license which just requires reproduction of the text. After all, the economic loss to the plaintiff is zero. In the UK at least, you could not sue for damages if there is no economic loss.

« Last Edit: October 21, 2025, 11:04:57 am by peter-h »
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 12514
  • Country: us
    • Personal site
Re: MbedTLS licensing terms
« Reply #8 on: October 21, 2025, 01:48:47 pm »
What if there is no UI?
My router came with all the licenses printed in the manual.

As an added angle, the stuff in question comes bundled with Cube IDE, so STM would have gone through this, and if commercial use was not allowed then the stuff would be useless except to hobbyists.
Not necessarily. Again, simply because STM provides some software, does not mean it is automatically licensed. It is still on you to either not use the software or adhere to the licenses.

If your product has no UI, it sounds like you have to publish the text somewhere where people can find it. The Q is where is "adequate".
A mention in the user manual is considered adequate.

The other thing I wonder about is whether anybody has ever been sued under some license which just requires reproduction of the text. After all, the economic loss to the plaintiff is zero. In the UK at least, you could not sue for damages if there is no economic loss.
Yes, people have been sued for GPL violations and companies were forced to provide the code.
Alex
 
The following users thanked this post: Whales, 5U4GB

Offline peter-hTopic starter

  • Super Contributor
  • ***
  • Posts: 6166
  • Country: gb
  • Doing electronics since the 1960s...
Re: MbedTLS licensing terms
« Reply #9 on: October 21, 2025, 02:36:11 pm »
Quote
simply because STM provides some software, does not mean it is automatically licensed. It is still on you to either not use the software or adhere to the licenses.

STM seem to reproduce the original license text. Well, if they didn't, they would not be complying with the license terms, would they ;)

Quote
Yes, people have been sued for GPL violations and companies were forced to provide the code.

Do you have any details? I wonder what the route was. Was some product suspected of containing e.g. LWIP and the mfg sued over it? In the UK, AIUI, you could not sue on that because with zero royalties there is no possible economic loss.

Quote
A mention in the user manual is considered adequate.

A mention of the module (e.g. "LWIP" or "MbedTLS") or a listing of the entire license text? The Apache 2 license text is quite long but, yeah, no problem in wasting some electrons in a PDF ;)

I also came across this one:

Note that MbedTLS cannot be updated beyond 2.16 due to this
https://github.com/OpenVPN/openvpn/commit/110eee0288cff0720952a2cf16c4fb191d0bd616
although there is a disagreement on this:
Why would the Apache2.0 license be a problem? It is more permissive than GPLv2 and does not have a copy left requirement as the GPL licenses do. It does not require that you redistribute the source code and any modifications that you have made to it, only that you include a description of those changes in any copies of the code that you do distribute.
It may be used commercially without any requirement that the rest of the project in which it is used is covered by the same license.
« Last Edit: October 21, 2025, 02:42:09 pm by peter-h »
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 12514
  • Country: us
    • Personal site
Re: MbedTLS licensing terms
« Reply #10 on: October 21, 2025, 02:45:49 pm »
Do you have any details? I wonder what the route was. Was some product suspected of containing e.g. LWIP and the mfg sued over it? In the UK, AIUI, you could not sue on that because with zero royalties there is no possible economic loss.
Sure - https://en.wikipedia.org/wiki/Open_source_license_litigation

Those lawsuits usually don't have the goal of extracting a ton of money. All people are asking for is to distribute the source code so that people could modify the hardware they own.

A mention of the module (e.g. "LWIP" or "MbedTLS") or a listing of the entire license text? The Apache 2 license text is quite long but, yeah, no problem in wasting some electrons in a PDF ;)
No need to mention specifics, all you need to say is that "the product contains components licensed under the following licenses: ....". And if specific license requires inclusion of the license text, then include the text too.

If the license entitles someone to get the relevant code, you must provide that code on request using commonly accepted methods. You can't stall and sent it letter by letter using snail mail, for example.


Alex
 

Offline peter-hTopic starter

  • Super Contributor
  • ***
  • Posts: 6166
  • Country: gb
  • Doing electronics since the 1960s...
Re: MbedTLS licensing terms
« Reply #11 on: October 21, 2025, 03:04:06 pm »
Very interesting - thanks. On a quick read, those cases are mostly where

- somebody used OS software without declaring it
- that somebody has a lot of $ and is thus an easy litigation target
- the copyright owner either has enough $ to do it or got some pro bono lawyer

Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 12514
  • Country: us
    • Personal site
Re: MbedTLS licensing terms
« Reply #12 on: October 21, 2025, 03:08:39 pm »
This is not a comprehensive list, just the biggest cases that set the precedent. There are more of them.

Big companies get to the actual court because they are big and believe they can win whatever case. In a lot of cases companies just comply when license violation is discovered and things settle long before the court.
Alex
 

Offline peter-hTopic starter

  • Super Contributor
  • ***
  • Posts: 6166
  • Country: gb
  • Doing electronics since the 1960s...
Re: MbedTLS licensing terms
« Reply #13 on: October 21, 2025, 03:18:58 pm »
I also think there must be a big "entrapment" element in these licensing terms i.e. you "hope" that somebody big will covertly use the code, so you wait until they do, wait some more until they make millions, and then you threaten them, to cash in.

It has to be that, because you will never cash in from users who comply with the licensing terms ;)
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 12514
  • Country: us
    • Personal site
Re: MbedTLS licensing terms
« Reply #14 on: October 21, 2025, 03:31:53 pm »
Nobody creates open source software with expectation of getting rich. People just want to release the software for everyone to use. Sleazy trolls sometimes want to cash in, which is technically their right, but they have nothing to do with the creators of the open software.

Other people using the software sometimes do get rich by using open source software. But it is increasingly evident that OS licenses are getting treated just like any other software licenses by the courts.
Alex
 

Offline 5U4GB

  • Super Contributor
  • ***
  • Posts: 1813
  • Country: au
Re: MbedTLS licensing terms
« Reply #15 on: October 22, 2025, 07:57:08 am »
Yes, people have been sued for GPL violations and companies were forced to provide the code.

Those cases though were for quite egregious GPL violations preceded by multiple warnings to the companies in question, not quibbles about whether the license terms were displayed appropriately.  When this has come up in discussions with OSS developers in the past the general understanding was that you're expected to make a best-effort attempt to display the text or whatever.  For example if you're calling into a third-party library there's not much you can do to display the license text for it, so a mention in the docs is fine.  We use some OSS components in our stuff and have an acknowledgement in the manual for those, on the few occasions where I've had the chance to talk to the authors of said components they've said that's fine.

Similarly, we provide some OSS components and all we ask for is an acknowledgement somewhere.  It's actually a bit annoying in this case, we've got some code that's triple- or quadruple-licensed in order to deal with different people's pet OSS ideologies.
 
The following users thanked this post: peter-h

Offline 5U4GB

  • Super Contributor
  • ***
  • Posts: 1813
  • Country: au
Re: MbedTLS licensing terms
« Reply #16 on: October 22, 2025, 08:09:31 am »
Nobody creates open source software with expectation of getting rich. People just want to release the software for everyone to use.

That's also why many OSS licenses have advertising clauses as their main component, the authors don't expect to get rich but would like to see their hard work acknowledged somewhere.  The popular CC-BY is another example of this.
 

Offline Nominal Animal

  • Super Contributor
  • ***
  • Posts: 8354
  • Country: fi
    • My home page and email address
Re: MbedTLS licensing terms
« Reply #17 on: October 22, 2025, 10:05:42 am »
The crux of the matter is that the code is free to use commercially but "somehow" you have to comply with the license terms. How the hell are you going to do that when selling a product which does not come with source code?
It depends on the license, of course.  Here, the pertinent license is Apache-2.0, or GPL 2.0 or later.  For commercial use, Apache 2.0 is much simpler.

I have seen only bits of the sources for MbedTLS
The active development repository is github.com/Mbed-TLS/mbedtls (aka https://github.com/ARMmbed/mbedtls).  All releases are tagged, too, so you can easily view or download any release or follow the main development branch, "development".

especially given that a commercial product is obviously 100% binary
That's where you are obviously 100% wrong.

A lot of custom proprietary development is done by contractors for organizations, with the sources provided.  (Guess why I know?)

You are stuck in a specific view of what a commercial software product is, and this is causing the huge problems you are experiencing: the world just does not fit your preconceptions.  Recognize where the problem lies, and you can start to solve it.  The world will not change for you, you have to adapt yourself, no matter how insane or weird it might feel like.

I do understand what you are experiencing, of course, because I went through the same around the turn of the century.  My solution, which I warmly recommend to everyone doing software development based on open source work, is to hire a specialized lawyer for a few hours to explain these licenses and how they work for you.  It worked for me better than I would ever have guessed.

in "open source" software anybody is free to use it for any purpose whatsoever. One can have a license stipulating that the author is credited but how do you do that on a commercially sold "box"?
:o

The entire free software/open source/copyleft idea is based on the distinction set in copyright law.  The license governs how one can distribute copies and derivatives of the work.  It does not govern how the work is "used" outside of that.

The same distinction also lead to contributions becoming the "currency" in this ecosystem, with end user counts being irrelevant (and occasionally negative!) for developers; only mattering for social reasons, and for the companies and/or organizations funding the developers.  To truly understand how and why these licenses work, you just have to get your mind around this.  If you don't, you won't.  I'm sorry to be this blunt, but getting this is absolutely critical here.

Free/open source licenses themselves can be divided roughly into two categories, based on their focus: permissive, and copyleft (or protective).  The permissive ones place minimal restrictions on copying and derivatives, focusing on acknowledgement of authorship and origin.  Copyleft, or protective licenses, want to ensure that all end users, even those of derivatives, have full access to the source code.



Let's step back a bit, and consider a practical example.

Let's say you have created Thingié, an off-the-shelf microcontroller product that uses MbedTLS under Apache-2.0 license.  Buyers only get the device, a one-page brochure, a download link to a PDF manual, and perhaps a link to firmware update site; not the source code.  How do you ensure you comply with the Apache-2.0 license?

First step is, of course, to understand the purpose of the Apache-2.0 license itself.  It was first released in 2004 by the Apache Software Foundation, with the "official" text here.  It is a permissive license, well suited for integration into closed-source proprietary products, with its main focus on retaining attribution in copies and derivatives.  The key part is section 4, Redistribution:
Quote
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:

a. You must give any other recipients of the Work or Derivative Works a copy of this License; and

b. You must cause any modified files to carry prominent notices stating that You changed the files; and

c. You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and

d. If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License.

You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.

You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.

To fulfill 4.a, you include the license text in the user manual provided to customers.  The recommended way is to include a paragraph in the introduction chapter, describing that the product uses MbedTLS (including specific version) under the Apache-2.0 license, and include (as an end note or attachment at the end of the manual) the text of the Apache-2.0 license.  Similarly for all other permissively-licensed projects and their licenses you use.  Note that to build community goodwill, you should not be ashamed or downplay the library use: quite contrary, you should be celebrating its use, for example using wording like "This product uses the MbedTLS library under the Apache-2.0 license.  MbedTLS is a reference implementation of the Platform Security Architecture for security in Internet of Things hardware, software, and devices."

While you do not need to do anything yo fulfill 4.b if you do not redistribute the sources, it is nevertheless a good idea to add a modification shortlog near the beginning of any file you modify.  It is simply a comment block with the date, your name/pseudonym/ID, and reason for the modification.  This suffices, plus it helps you yourself in maintaining the derivative library.

Paragraph 4.c just means you don't get to delete other peoples' notices in the sources if you distribute them.  In practice, it means that if you create a derivative by only copying parts that you think pertinent, you should keep the comments related to attribution with your copies (for the parts you do copy), and not just skip/delete them.  (Remember: the focus of this license is attribution.  This makes more and more sense the more you think about it.)

Paragraph 4.d you can ignore for MbedTLS, because it does not have a NOTICE file.  If it did, the user manual introduction paragraph should incorporate it the same way you did the Apache-2.0 license.

That's it.

Let's recap what you need to do to comply with the Apache-2.0 license you rely on with MbedTLS:
  • In the user manual introduction chapter, include a paragraph describing MbedTLS, and that it is used under the Apache-2.0 license; and include the license at the end of the user manual.
  • Internally, if you end up having to modify MbedTLS sources, just to help yourself in the future, mark your changes with a short comment at the beginning of each file you modify, preferably with a date, your pseudonym/name, and a one-line explanation of the change.  This helps you track your own modifications; but if you end up changing your mind later on, and want to publish the modified version of MbedTLS also, you'll be in compliance then too — so this both helps you maintain the changes, and keeps your future options open.
  • Uh.. profit?

The procedure is the same regardless of the license and project involved.  For example, to use Qt under LGPL in a closed-source proprietary product, the added hurdle is that you need to let your users replace the Qt libraries incorporated with their own files, and only link to them dynamically (at run time); this is because the LGPL license is extremely strict about end user freedom to choose what they use.

As a vendor, you of course believe the product is yours and end users are only using it under a license, but the entire reason for free software and open source existing is the opposite: that outside of distribution governed by the copyright laws, the end users own the copies in the sense that as long as they don't run afoul of copyright laws, they do get to apply the product any way they want.  In fact, it is extremely close to the Right of Ownership that e.g. Louis Rossmann is fighting for.
 
The following users thanked this post: gmb42, peter-h, newbrain, abeyer, Rafiki

Offline peter-hTopic starter

  • Super Contributor
  • ***
  • Posts: 6166
  • Country: gb
  • Doing electronics since the 1960s...
Re: MbedTLS licensing terms
« Reply #18 on: October 22, 2025, 10:46:58 am »
Interesting to hear different peoples' thoughts on this topic.

Of course I expected some people to get onto high horses on this stuff, regardless of how theoretical and bizarre a situation it is where you ask for no money but want to sue somebody for failing to include some notices!

It doesn't affect me and my little business because the one product in question is supplied with a development kit, Cube IDE based, and all the OS software sources are included, so people can spend their entire lives reading the license notices ;)

As I said above, I started this thread because somebody posted a Q on the MbedTLS mailing list, and I thought the Q pretty well formulated what must be a common scenario, yet nobody was willing to give a clear answer, which I thought was potentially a bit suspicious.
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 

Offline voltsandjolts

  • Supporter
  • ****
  • Posts: 3941
  • Country: gb
Re: MbedTLS licensing terms
« Reply #19 on: October 22, 2025, 11:39:13 am »
I expected some people to get onto high horses on this stuff

Perhaps they're not riding on such a high horse, and it's actually your perspective that's coming from a very low position. Your perspective is a curious one, since you're a software developer and distributor, yet are happy to ride roughshod through copyright law; purchasing and using counterfeit Segger products, with Segger copyrighted firmware and software, as you describe in your other thread. But now that it comes to distributing your product, here you are in this thread all concerned about copyright law. Which Peter will we see tomorrow?
 
The following users thanked this post: gmb42

Offline peter-hTopic starter

  • Super Contributor
  • ***
  • Posts: 6166
  • Country: gb
  • Doing electronics since the 1960s...
Re: MbedTLS licensing terms
« Reply #20 on: October 22, 2025, 11:50:15 am »
Nonsense.

Not using Segger for any commercial purpose. I use STLINK V3, as described. 1/10 of the cost of a real Segger and works just fine.

I tested a real Segger and some Chinese ones, and posted whether they work. You obviously didn't like that, so get off your high horse!
« Last Edit: October 22, 2025, 12:01:33 pm by peter-h »
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 

Offline Monkeh

  • Super Contributor
  • ***
  • Posts: 8890
  • Country: gb
Re: MbedTLS licensing terms
« Reply #21 on: October 22, 2025, 12:34:17 pm »
Of course I expected some people to get onto high horses on this stuff, regardless of how theoretical and bizarre a situation it is where you ask for no money but want to sue somebody for failing to include some notices!

There's nothing theoretical or bizarre about it. Software released under certain licenses, like the GPL, is freely available and therefore has no direct revenue stream. There are no damages to sue for. But there is no point releasing software under a license if the license can be ignored, so violators are sued for compliance and costs. It's called principle.
« Last Edit: October 22, 2025, 12:48:10 pm by Monkeh »
 
The following users thanked this post: gmb42, newbrain, abeyer, 5U4GB

Offline Nominal Animal

  • Super Contributor
  • ***
  • Posts: 8354
  • Country: fi
    • My home page and email address
Re: MbedTLS licensing terms
« Reply #22 on: October 22, 2025, 01:18:09 pm »
Of course I expected some people to get onto high horses on this stuff, regardless of how theoretical and bizarre a situation it is where you ask for no money but want to sue somebody for failing to include some notices!
This is exactly what I mean by having problems because of your limited perception and understanding.  This is what a lawyer specializing in software licensing with particular knowledge about free/open source licenses, could teach you.

Money is not the primary currency in free/open source software development.  Development time and effort is.  If you've ever tried to set a bounty, or pay to get a feature implemented, you'll have encountered this.  Having cash at hand is not sufficient: you have to spend the time and effort to describe the problem and goals, set the requirements, and put up the reward.  Some people never understand this, and will thus never understand how this world actually works.  It will be forever "theoretical and bizarre" to them.  It just isn't a world where you get to a counter and offer money and get what you want; it doesn't work that way.

There are several (valid!) reasons why a developer would contribute to a FOSS project.  One way to ensure companies and organizations are willing to compensate developers based on real-world performance is to show their FOSS contributions.  If companies and organizations use that work product, but refuse or simply forget those attributions, the larger/wider used the derivative is, the more it hurts those original developers: their work product is used without any attribution, thus their skills are not appreciated to the extent they are exploited.

You only see this as "theoretical and bizarre" because you do not understand anything but the most surface money flow in today's software development.  To a fresh developer, honing their skills on FOSS projects for a few years, and then leveraging that for a proper senior developer compensation at any software company, proper attribution is what their future career depends on.  For somebody having developed/maintained a project for a decade, and then noticing a company relies on it without even acknowledging it in their user guides, it is simply theft: they are exploiting the project for their own gain, contributing nothing back — even when the required contribution is just a simple notice.  At that point, bopping the company on the nose with lawyers can be well worth the cost and publicity.

This is even more important when mixing proprietary closed source and free/open source projects.  There are strict limitations on how that can be done, but it can be done, and it can be done while keeping even the FOSS developer community happy.  It has to be done precisely and carefully, but it isn't difficult once you understand the requirements and optional desires.  Attribution is key for permissive licenses.  Keeping end-user options open (including source code) is key for copyleft/restrictive FOSS licenses.
 
The following users thanked this post: gmb42, newbrain

Offline Nominal Animal

  • Super Contributor
  • ***
  • Posts: 8354
  • Country: fi
    • My home page and email address
Re: MbedTLS licensing terms
« Reply #23 on: October 22, 2025, 01:35:10 pm »
It doesn't affect me and my little business because the one product in question is supplied with a development kit, Cube IDE based, and all the OS software sources are included, so people can spend their entire lives reading the license notices ;)
Well, 4. (b) and (c) do affect you too.  Because of (b), if you do modify any MbedTLS files, you need to note the modifications early in the file (as I described, best done using a changelog-style comment with your name/pseudonym/id, date, and one-line reason for the change).  Because of (c), you must not delete attribution/copyright/licensing comments and texts from the files you do distribute.

Look.  None of this is "bizarre" or "theoretical".  It is a very real, extremely practical way of doing software development in the long run.  It has been proven to work, even in our current extremely competitive global world.  Understanding why and how is the first step of making the most of it, without harming others.  Even a little business like yours can have a mutually profitable relationship with various FOSS projects if you choose to — but it all starts from understanding.  It does not even require you to use the same license, or even to open up all your own proprietary source code, not even if you interact with GPL-licensed projects.  If you start by labeling their decades-tested core ideas as "bizarre", you've already lost the business opportunities.
 
The following users thanked this post: voltsandjolts

Offline peter-hTopic starter

  • Super Contributor
  • ***
  • Posts: 6166
  • Country: gb
  • Doing electronics since the 1960s...
Re: MbedTLS licensing terms
« Reply #24 on: October 22, 2025, 01:40:11 pm »
Quote
That's also why many OSS licenses have advertising clauses as their main component

In this context of the above I wonder how often a dev of "OS" software is hoping to make money doing "consultancy".

I've seen this quite often.

For example you have the well known Magento online shop - a package written in PHP and fairly widely used. And like all OS PHP software, a target for hackers. There is a vast army of people out there making a living from setting up Magento for your business. They usually charge 5 digits. Then they charge a similar amount for upgrading v1.x to v2.x and this is a fair bit of work because the thing was written so v2.x doesn't properly import v1.x data ;) Nothing stops you downloading Magento and setting it up yourself. It will take you several man-months... as I well know, having seen it done. The price for doing it yourself is that for the next 20 years you will be spammed by 10,000 Magento consultants offering their services :) But also there is regular work to do e.g. the interface with whatever payment processor you use will break every so often so somebody has to dig around and fix it. And it gets much worse if you want to connect it to your accounting software! And since the "shop" is also your "website", the dev can get the biggest prize of all: a regular monthly fee, say $500, for looking after SEO. They usually claim to deliver more clicks than Google Adwords, but they never deliver on that. The big plus of Magento is that PHP is easy to maintain and lots of people can do it - unlike the next example:

Another one is the Discourse forum package. I looked at for a project and dropped the idea fast because while Ruby on Rails is very solid in the hands of an expert, those experts nowadays have long beards and charge the "COBOL-66 rates" i.e. £1500/day :) And sure enough there is an army of Discourse devs, hanging out on the Discourse forum (which, you've guessed it, runs on Discourse) who charge a few k upwards (usually into 5 digits again) for exporting the database of your existing forum to Discourse. Another forum package is PHP-BB which is quite nice but is an easy exploit target and every PHP-BB forum I know of has been hacked, mostly severely, so it needs to be set up carefully.

Adobe have recently bought Magento but the original product remains as open source. No doubt any development of it under the Adobe name will not be OS and probably a lot of people are not happy about that because the OS version will gradually die. OTOH why did the copyright owners sell it? I think they could see Magento gradually disappearing, as people move to other online shopping platforms e.g. Shopify where the hosting company does all the admin and security for you, which nowadays is a pretty big thing. But the basic thing is that the copyright owners were not making money from it; everybody else was doing that. Most people look for an "exit" where they can cash out.

I have no idea if any of the devs of the OS software we see in the embedded sphere are actually making a living doing consultancy but some probably are. Why not? Makes perfect sense. At least the code gets some real testing. The MbedTLS guys bring out a new version every not many weeks! No idea how they find the time. Somebody was talking about a quantum crypto resistant version. They can just keep going... They also support the product so maybe they have a paid sideline. At the same time LWIP, FatFS, FreeRTOS are not being developed anymore AFAICT, and nobody is supporting these either.
« Last Edit: October 22, 2025, 03:35:49 pm by peter-h »
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

- - -
-->