diff options
-rw-r--r-- | cryptography/c/asn1.py | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/cryptography/c/asn1.py b/cryptography/c/asn1.py deleted file mode 100644 index f98757b4..00000000 --- a/cryptography/c/asn1.py +++ /dev/null @@ -1,56 +0,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. - -INCLUDES = [ - '#include <openssl/asn1.h>', -] - -TYPES = [ - 'typedef ... ASN1_INTEGER;', - 'typedef ... ASN1_OCTET_STRING;', - 'typedef ... ASN1_OBJECT;', - 'typedef ... ASN1_STRING;', - 'typedef ... ASN1_TYPE;', -] - -FUNCTIONS = [ - 'ASN1_OBJECT *ASN1_OBJECT_new(void);', - 'void ASN1_OBJECT_free(ASN1_OBJECT *a);', - # ASN1 OBJECT IDENTIFIER - 'ASN1_OBJECT *d2i_ASN1_OBJECT(ASN1_OBJECT **a, const unsigned char **pp, long length);', - 'int i2d_ASN1_OBJECT(ASN1_OBJECT *a, unsigned char **pp);', - # ASN1 STRING - 'ASN1_STRING * ASN1_STRING_new(void);', - 'ASN1_STRING * ASN1_STRING_type_new(int type);', - 'void ASN1_STRING_free(ASN1_STRING *a);', - 'int ASN1_STRING_length(ASN1_STRING *x);', - 'unsigned char * ASN1_STRING_data(ASN1_STRING *x);', - 'ASN1_STRING * ASN1_STRING_dup(ASN1_STRING *a);', - 'int ASN1_STRING_cmp(ASN1_STRING *a, ASN1_STRING *b);', - 'int ASN1_STRING_set(ASN1_STRING *str, const void *data, int len);', - 'int ASN1_STRING_type(ASN1_STRING *x);', - 'int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in);', - # ASN1 OCTET STRING - 'ASN1_OCTET_STRING * ASN1_OCTET_STRING_new(void);', - 'void ASN1_OCTET_STRING_free(ASN1_OCTET_STRING *a);', - 'ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup(ASN1_OCTET_STRING *a);', - 'int ASN1_OCTET_STRING_cmp(ASN1_OCTET_STRING *a, ASN1_OCTET_STRING *b);', - 'int ASN1_OCTET_STRING_set(ASN1_OCTET_STRING *str, const void *data, int len);', - # ASN1 INTEGER - 'ASN1_INTEGER * ASN1_INTEGER_new(void);', - 'void ASN1_INTEGER_free(ASN1_INTEGER *a);', - 'ASN1_INTEGER * ASN1_INTEGER_dup(ASN1_INTEGER *a);', - 'int ASN1_INTEGER_cmp(ASN1_INTEGER *a, ASN1_INTEGER *b);', - 'int ASN1_INTEGER_set(ASN1_INTEGER *a, long v);', - 'long ASN1_INTEGER_get(ASN1_INTEGER *a);', -] |