libcoap is published as open-source software without any warranty of any kind.

Use is permitted under the terms of the GNU General Public License (GPL),
Version 2 or higher, OR the simplified BSD license.

The respective license file are shipped as LICENSE.BSD and LICENSE.GPL.
