summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2016-05-18 15:16:36 +0200
committerRich Salz <rsalz@openssl.org>2016-05-18 15:23:31 +0200
commit9e20068958b8c1772067299dda7df0b8a82283b4 (patch)
treed7790900dc1ecfd8ade7fc47169878297b61179d /demos
parentAdd some error messages for malloc fails (diff)
downloadopenssl-9e20068958b8c1772067299dda7df0b8a82283b4.tar.xz
openssl-9e20068958b8c1772067299dda7df0b8a82283b4.zip
Consolidate copyright for demos
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'demos')
-rw-r--r--demos/bio/client-arg.c9
-rw-r--r--demos/bio/client-conf.c9
-rw-r--r--demos/bio/saccept.c9
-rw-r--r--demos/bio/sconnect.c9
-rw-r--r--demos/bio/server-arg.c9
-rw-r--r--demos/bio/server-cmod.c9
-rw-r--r--demos/bio/server-conf.c9
-rw-r--r--demos/cms/cms_comp.c9
-rw-r--r--demos/cms/cms_ddec.c9
-rw-r--r--demos/cms/cms_dec.c9
-rw-r--r--demos/cms/cms_denc.c9
-rw-r--r--demos/cms/cms_enc.c9
-rw-r--r--demos/cms/cms_sign.c9
-rw-r--r--demos/cms/cms_sign2.c9
-rw-r--r--demos/cms/cms_uncomp.c9
-rw-r--r--demos/cms/cms_ver.c9
-rw-r--r--demos/evp/aesccm.c9
-rw-r--r--demos/evp/aesgcm.c9
-rw-r--r--demos/pkcs12/pkread.c8
-rw-r--r--demos/pkcs12/pkwrite.c8
-rw-r--r--demos/smime/smdec.c9
-rw-r--r--demos/smime/smenc.c9
-rw-r--r--demos/smime/smsign.c9
-rw-r--r--demos/smime/smsign2.c9
-rw-r--r--demos/smime/smver.c9
25 files changed, 223 insertions, 0 deletions
diff --git a/demos/bio/client-arg.c b/demos/bio/client-arg.c
index 630b166779..9e136e563d 100644
--- a/demos/bio/client-arg.c
+++ b/demos/bio/client-arg.c
@@ -1,3 +1,12 @@
+/*
+ * Copyright 2013-2016 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the OpenSSL license (the "License"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
+
#include <string.h>
#include <openssl/err.h>
#include <openssl/ssl.h>
diff --git a/demos/bio/client-conf.c b/demos/bio/client-conf.c
index 4e4d4bc8df..66b5cac47c 100644
--- a/demos/bio/client-conf.c
+++ b/demos/bio/client-conf.c
@@ -1,3 +1,12 @@
+/*
+ * Copyright 2013-2016 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the OpenSSL license (the "License"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
+
#include <string.h>
#include <openssl/err.h>
#include <openssl/ssl.h>
diff --git a/demos/bio/saccept.c b/demos/bio/saccept.c
index 240132cef9..106a089daf 100644
--- a/demos/bio/saccept.c
+++ b/demos/bio/saccept.c
@@ -1,3 +1,12 @@
+/*
+ * Copyright 1998-2016 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the OpenSSL license (the "License"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
+
/*-
* A minimal program to serve an SSL connection.
* It uses blocking.
diff --git a/demos/bio/sconnect.c b/demos/bio/sconnect.c
index 16dba40ff5..284bc30944 100644
--- a/demos/bio/sconnect.c
+++ b/demos/bio/sconnect.c
@@ -1,3 +1,12 @@
+/*
+ * Copyright 1998-2016 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the OpenSSL license (the "License"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
+
/*-
* A minimal program to do SSL to a passed host and port.
* It is actually using non-blocking IO but in a very simple manner
diff --git a/demos/bio/server-arg.c b/demos/bio/server-arg.c
index b2a43a9387..4e9b7bdcb0 100644
--- a/demos/bio/server-arg.c
+++ b/demos/bio/server-arg.c
@@ -1,4 +1,13 @@
/*
+ * Copyright 2013-2016 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the OpenSSL license (the "License"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
+
+/*
* A minimal program to serve an SSL connection. It uses blocking. It use the
* SSL_CONF API with the command line. cc -I../../include server-arg.c
* -L../.. -lssl -lcrypto -ldl
diff --git a/demos/bio/server-cmod.c b/demos/bio/server-cmod.c
index 51291da4b8..77b456a459 100644
--- a/demos/bio/server-cmod.c
+++ b/demos/bio/server-cmod.c
@@ -1,4 +1,13 @@
/*
+ * Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the OpenSSL license (the "License"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
+
+/*
* A minimal TLS server it ses SSL_CTX_config and a configuration file to
* set most server parameters.
*/
diff --git a/demos/bio/server-conf.c b/demos/bio/server-conf.c
index db624ba1fb..32abefdf1d 100644
--- a/demos/bio/server-conf.c
+++ b/demos/bio/server-conf.c
@@ -1,4 +1,13 @@
/*
+ * Copyright 2013-2016 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the OpenSSL license (the "License"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
+
+/*
* A minimal program to serve an SSL connection. It uses blocking. It uses
* the SSL_CONF API with a configuration file. cc -I../../include saccept.c
* -L../.. -lssl -lcrypto -ldl
diff --git a/demos/cms/cms_comp.c b/demos/cms/cms_comp.c
index f902d20e6d..0d548f93ca 100644
--- a/demos/cms/cms_comp.c
+++ b/demos/cms/cms_comp.c
@@ -1,3 +1,12 @@
+/*
+ * Copyright 2008-2016 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the OpenSSL license (the "License"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
+
/* Simple S/MIME compress example */
#include <openssl/pem.h>
#include <openssl/cms.h>
diff --git a/demos/cms/cms_ddec.c b/demos/cms/cms_ddec.c
index 3b23e8d30b..8f2e9aecb2 100644
--- a/demos/cms/cms_ddec.c
+++ b/demos/cms/cms_ddec.c
@@ -1,4 +1,13 @@
/*
+ * Copyright 2008-2016 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the OpenSSL license (the "License"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
+
+/*
* S/MIME detached data decrypt example: rarely done but should the need
* arise this is an example....
*/
diff --git a/demos/cms/cms_dec.c b/demos/cms/cms_dec.c
index 22181c25ff..4f9428b4e7 100644
--- a/demos/cms/cms_dec.c
+++ b/demos/cms/cms_dec.c
@@ -1,3 +1,12 @@
+/*
+ * Copyright 2008-2016 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the OpenSSL license (the "License"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
+
/* Simple S/MIME decryption example */
#include <openssl/pem.h>
#include <openssl/cms.h>
diff --git a/demos/cms/cms_denc.c b/demos/cms/cms_denc.c
index 8aa82aa808..adba69b96d 100644
--- a/demos/cms/cms_denc.c
+++ b/demos/cms/cms_denc.c
@@ -1,4 +1,13 @@
/*
+ * Copyright 2008-2016 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the OpenSSL license (the "License"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
+
+/*
* S/MIME detached data encrypt example: rarely done but should the need
* arise this is an example....
*/
diff --git a/demos/cms/cms_enc.c b/demos/cms/cms_enc.c
index f4ba5428ee..4d17d720c6 100644
--- a/demos/cms/cms_enc.c
+++ b/demos/cms/cms_enc.c
@@ -1,3 +1,12 @@
+/*
+ * Copyright 2008-2016 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the OpenSSL license (the "License"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
+
/* Simple S/MIME encrypt example */
#include <openssl/pem.h>
#include <openssl/cms.h>
diff --git a/demos/cms/cms_sign.c b/demos/cms/cms_sign.c
index 8b5a64d957..15bd5b8dd9 100644
--- a/demos/cms/cms_sign.c
+++ b/demos/cms/cms_sign.c
@@ -1,3 +1,12 @@
+/*
+ * Copyright 2008-2016 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the OpenSSL license (the "License"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
+
/* Simple S/MIME signing example */
#include <openssl/pem.h>
#include <openssl/cms.h>
diff --git a/demos/cms/cms_sign2.c b/demos/cms/cms_sign2.c
index 9fdd0353bf..14ebf27775 100644
--- a/demos/cms/cms_sign2.c
+++ b/demos/cms/cms_sign2.c
@@ -1,3 +1,12 @@
+/*
+ * Copyright 2008-2016 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the OpenSSL license (the "License"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
+
/* S/MIME signing example: 2 signers */
#include <openssl/pem.h>
#include <openssl/cms.h>
diff --git a/demos/cms/cms_uncomp.c b/demos/cms/cms_uncomp.c
index 2c10b8120e..3e3b4c4c6e 100644
--- a/demos/cms/cms_uncomp.c
+++ b/demos/cms/cms_uncomp.c
@@ -1,3 +1,12 @@
+/*
+ * Copyright 2008-2016 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the OpenSSL license (the "License"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
+
/* Simple S/MIME uncompression example */
#include <openssl/pem.h>
#include <openssl/cms.h>
diff --git a/demos/cms/cms_ver.c b/demos/cms/cms_ver.c
index c6e83c054a..43c10e2513 100644
--- a/demos/cms/cms_ver.c
+++ b/demos/cms/cms_ver.c
@@ -1,3 +1,12 @@
+/*
+ * Copyright 2008-2016 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the OpenSSL license (the "License"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
+
/* Simple S/MIME verification example */
#include <openssl/pem.h>
#include <openssl/cms.h>
diff --git a/demos/evp/aesccm.c b/demos/evp/aesccm.c
index e0240e5869..cc4d0b5ee9 100644
--- a/demos/evp/aesccm.c
+++ b/demos/evp/aesccm.c
@@ -1,4 +1,13 @@
/*
+ * Copyright 2013-2016 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the OpenSSL license (the "License"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
+
+/*
* Simple AES CCM test program, uses the same NIST data used for the FIPS
* self test but uses the application level EVP APIs.
*/
diff --git a/demos/evp/aesgcm.c b/demos/evp/aesgcm.c
index 72028a04a0..17b0ef4748 100644
--- a/demos/evp/aesgcm.c
+++ b/demos/evp/aesgcm.c
@@ -1,4 +1,13 @@
/*
+ * Copyright 2012-2016 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the OpenSSL license (the "License"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
+
+/*
* Simple AES GCM test program, uses the same NIST data used for the FIPS
* self test but uses the application level EVP APIs.
*/
diff --git a/demos/pkcs12/pkread.c b/demos/pkcs12/pkread.c
index 373981469d..3b87d7a4ae 100644
--- a/demos/pkcs12/pkread.c
+++ b/demos/pkcs12/pkread.c
@@ -1,3 +1,11 @@
+/*
+ * Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the OpenSSL license (the "License"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
#include <stdio.h>
#include <stdlib.h>
diff --git a/demos/pkcs12/pkwrite.c b/demos/pkcs12/pkwrite.c
index d04a22b8eb..e14cf8327d 100644
--- a/demos/pkcs12/pkwrite.c
+++ b/demos/pkcs12/pkwrite.c
@@ -1,3 +1,11 @@
+/*
+ * Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the OpenSSL license (the "License"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
#include <stdio.h>
#include <stdlib.h>
diff --git a/demos/smime/smdec.c b/demos/smime/smdec.c
index f1a987a34e..c4d1b090d9 100644
--- a/demos/smime/smdec.c
+++ b/demos/smime/smdec.c
@@ -1,3 +1,12 @@
+/*
+ * Copyright 2007-2016 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the OpenSSL license (the "License"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
+
/* Simple S/MIME signing example */
#include <openssl/pem.h>
#include <openssl/pkcs7.h>
diff --git a/demos/smime/smenc.c b/demos/smime/smenc.c
index 79fe2d0e10..5d36e9a497 100644
--- a/demos/smime/smenc.c
+++ b/demos/smime/smenc.c
@@ -1,3 +1,12 @@
+/*
+ * Copyright 2007-2016 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the OpenSSL license (the "License"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
+
/* Simple S/MIME encrypt example */
#include <openssl/pem.h>
#include <openssl/pkcs7.h>
diff --git a/demos/smime/smsign.c b/demos/smime/smsign.c
index 8505e7140b..ba0adb3974 100644
--- a/demos/smime/smsign.c
+++ b/demos/smime/smsign.c
@@ -1,3 +1,12 @@
+/*
+ * Copyright 2007-2016 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the OpenSSL license (the "License"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
+
/* Simple S/MIME signing example */
#include <openssl/pem.h>
#include <openssl/pkcs7.h>
diff --git a/demos/smime/smsign2.c b/demos/smime/smsign2.c
index 415ecf395f..2b7f45b294 100644
--- a/demos/smime/smsign2.c
+++ b/demos/smime/smsign2.c
@@ -1,3 +1,12 @@
+/*
+ * Copyright 2007-2016 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the OpenSSL license (the "License"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
+
/* S/MIME signing example: 2 signers. OpenSSL 0.9.9 only */
#include <openssl/pem.h>
#include <openssl/pkcs7.h>
diff --git a/demos/smime/smver.c b/demos/smime/smver.c
index 13ba18b9b9..75411c40d0 100644
--- a/demos/smime/smver.c
+++ b/demos/smime/smver.c
@@ -1,3 +1,12 @@
+/*
+ * Copyright 2007-2016 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the OpenSSL license (the "License"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
+
/* Simple S/MIME verification example */
#include <openssl/pem.h>
#include <openssl/pkcs7.h>