aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cryptography/c/__init__.py13
-rw-r--r--cryptography/c/api.py13
-rw-r--r--cryptography/c/asn1.py13
-rw-r--r--cryptography/c/bio.py13
-rw-r--r--cryptography/c/bio_filter.py13
-rw-r--r--cryptography/c/bio_sink.py13
-rw-r--r--cryptography/c/err.py13
-rw-r--r--cryptography/c/evp.py13
-rw-r--r--cryptography/c/evp_cipher.py13
-rw-r--r--cryptography/c/evp_cipher_listing.py13
-rw-r--r--cryptography/c/evp_md.py13
-rw-r--r--cryptography/c/hmac.py13
-rw-r--r--cryptography/c/nid.py13
-rw-r--r--cryptography/c/obj.py13
-rw-r--r--cryptography/c/openssl.py13
-rw-r--r--cryptography/c/pkcs5.py13
-rw-r--r--cryptography/c/rand.py13
-rw-r--r--cryptography/c/ssl.py13
-rw-r--r--cryptography/c/ssleay.py13
-rw-r--r--cryptography/c/stdio.py13
-rw-r--r--setup.py15
21 files changed, 274 insertions, 1 deletions
diff --git a/cryptography/c/__init__.py b/cryptography/c/__init__.py
index 07927848..09bf4977 100644
--- a/cryptography/c/__init__.py
+++ b/cryptography/c/__init__.py
@@ -1,3 +1,16 @@
+# 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.
+
from cryptography.c.api import api
diff --git a/cryptography/c/api.py b/cryptography/c/api.py
index f33ddda9..0147a8f8 100644
--- a/cryptography/c/api.py
+++ b/cryptography/c/api.py
@@ -1,3 +1,16 @@
+# 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.
+
from __future__ import absolute_import, division, print_function
import atexit
diff --git a/cryptography/c/asn1.py b/cryptography/c/asn1.py
index 1979f85d..f98757b4 100644
--- a/cryptography/c/asn1.py
+++ b/cryptography/c/asn1.py
@@ -1,3 +1,16 @@
+# 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.
+
INCLUDES = [
'#include <openssl/asn1.h>',
]
diff --git a/cryptography/c/bio.py b/cryptography/c/bio.py
index ea1f936e..722774c6 100644
--- a/cryptography/c/bio.py
+++ b/cryptography/c/bio.py
@@ -1,3 +1,16 @@
+# 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.
+
INCLUDES = [
'#include <openssl/bio.h>',
]
diff --git a/cryptography/c/bio_filter.py b/cryptography/c/bio_filter.py
index a29d8d8c..808ca020 100644
--- a/cryptography/c/bio_filter.py
+++ b/cryptography/c/bio_filter.py
@@ -1,3 +1,16 @@
+# 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.
+
INCLUDES = [
'#include <openssl/bio.h>',
]
diff --git a/cryptography/c/bio_sink.py b/cryptography/c/bio_sink.py
index 578d7a95..1091c15e 100644
--- a/cryptography/c/bio_sink.py
+++ b/cryptography/c/bio_sink.py
@@ -1,3 +1,16 @@
+# 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.
+
INCLUDES = [
'#include <openssl/bio.h>',
]
diff --git a/cryptography/c/err.py b/cryptography/c/err.py
index b59ece93..02c47a91 100644
--- a/cryptography/c/err.py
+++ b/cryptography/c/err.py
@@ -1,3 +1,16 @@
+# 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.
+
INCLUDES = [
'#include <openssl/err.h>',
'#include <openssl/ssl.h>',
diff --git a/cryptography/c/evp.py b/cryptography/c/evp.py
index a063a222..aa22d0de 100644
--- a/cryptography/c/evp.py
+++ b/cryptography/c/evp.py
@@ -1,3 +1,16 @@
+# 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.
+
INCLUDES = [
'#include "openssl/evp.h"',
]
diff --git a/cryptography/c/evp_cipher.py b/cryptography/c/evp_cipher.py
index 4e6ae729..7e0419e5 100644
--- a/cryptography/c/evp_cipher.py
+++ b/cryptography/c/evp_cipher.py
@@ -1,3 +1,16 @@
+# 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.
+
INCLUDES = [
'#include "openssl/evp.h"',
]
diff --git a/cryptography/c/evp_cipher_listing.py b/cryptography/c/evp_cipher_listing.py
index 5a0812c2..46967abc 100644
--- a/cryptography/c/evp_cipher_listing.py
+++ b/cryptography/c/evp_cipher_listing.py
@@ -1,3 +1,16 @@
+# 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.
+
INCLUDES = [
'#include "openssl/evp.h"',
]
diff --git a/cryptography/c/evp_md.py b/cryptography/c/evp_md.py
index ce3583e5..12f71029 100644
--- a/cryptography/c/evp_md.py
+++ b/cryptography/c/evp_md.py
@@ -1,3 +1,16 @@
+# 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.
+
INCLUDES = [
'#include "openssl/evp.h"',
]
diff --git a/cryptography/c/hmac.py b/cryptography/c/hmac.py
index aec734a8..460a4a98 100644
--- a/cryptography/c/hmac.py
+++ b/cryptography/c/hmac.py
@@ -1,3 +1,16 @@
+# 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.
+
INCLUDES = [
'#include <openssl/hmac.h>',
]
diff --git a/cryptography/c/nid.py b/cryptography/c/nid.py
index 6d55a058..8552f817 100644
--- a/cryptography/c/nid.py
+++ b/cryptography/c/nid.py
@@ -1,3 +1,16 @@
+# 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.
+
TYPES = [
'static const int NID_undef;',
'static const int NID_dsa;',
diff --git a/cryptography/c/obj.py b/cryptography/c/obj.py
index 6b5bf67e..dfe7a139 100644
--- a/cryptography/c/obj.py
+++ b/cryptography/c/obj.py
@@ -1,3 +1,16 @@
+# 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.
+
INCLUDES = [
'#include <openssl/objects.h>',
]
diff --git a/cryptography/c/openssl.py b/cryptography/c/openssl.py
index 0fc9d706..5c2ef96b 100644
--- a/cryptography/c/openssl.py
+++ b/cryptography/c/openssl.py
@@ -1,3 +1,16 @@
+# 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.
+
INCLUDES = [
'#include "openssl/ssl.h"',
]
diff --git a/cryptography/c/pkcs5.py b/cryptography/c/pkcs5.py
index 423f5e64..5ed7caec 100644
--- a/cryptography/c/pkcs5.py
+++ b/cryptography/c/pkcs5.py
@@ -1,3 +1,16 @@
+# 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.
+
INCLUDES = [
'#include "openssl/evp.h"',
]
diff --git a/cryptography/c/rand.py b/cryptography/c/rand.py
index ce7cd1bc..43459656 100644
--- a/cryptography/c/rand.py
+++ b/cryptography/c/rand.py
@@ -1,3 +1,16 @@
+# 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.
+
INCLUDES = [
'#include <openssl/rand.h>',
]
diff --git a/cryptography/c/ssl.py b/cryptography/c/ssl.py
index 25dd006a..30b35c16 100644
--- a/cryptography/c/ssl.py
+++ b/cryptography/c/ssl.py
@@ -1,3 +1,16 @@
+# 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.
+
from functools import wraps
INCLUDES = [
diff --git a/cryptography/c/ssleay.py b/cryptography/c/ssleay.py
index a75d664c..eeede2ae 100644
--- a/cryptography/c/ssleay.py
+++ b/cryptography/c/ssleay.py
@@ -1,3 +1,16 @@
+# 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.
+
INCLUDES = [
'#include "openssl/ssl.h"',
]
diff --git a/cryptography/c/stdio.py b/cryptography/c/stdio.py
index 553b6fc9..9130150f 100644
--- a/cryptography/c/stdio.py
+++ b/cryptography/c/stdio.py
@@ -1,3 +1,16 @@
+# 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.
+
INCLUDES = [
'#include <stdio.h>',
]
diff --git a/setup.py b/setup.py
index f1c1c68e..ddb0a8d0 100644
--- a/setup.py
+++ b/setup.py
@@ -1,8 +1,21 @@
+# 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.
+
from setuptools import setup
setup(
name="cryptography",
- license="Apache Software License Verison 2.0",
+ license="Apache License, Verison 2.0",
install_requires=["cffi>=0.6"],
)