aboutsummaryrefslogtreecommitdiff
path: root/crypto/asn1/asn1_locl.h
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2017-03-30 13:31:16 +0200
committerRichard Levitte <levitte@openssl.org>2017-04-04 11:29:23 +0200
commit93f7d6fc10b75814d90d804edb56947cacf8964e (patch)
treee66b5bc1a1826a70485d1a3cd734e1a5a85fa3d2 /crypto/asn1/asn1_locl.h
parent8edb4ee1a237b43d9520eaa658a4ad2671e8dd0c (diff)
downloadopenssl-93f7d6fc10b75814d90d804edb56947cacf8964e.zip
openssl-93f7d6fc10b75814d90d804edb56947cacf8964e.tar.gz
openssl-93f7d6fc10b75814d90d804edb56947cacf8964e.tar.bz2
Implement internal ASN.1 types INT32, UINT32, INT64, UINT64
Also Z varieties. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3088)
Diffstat (limited to 'crypto/asn1/asn1_locl.h')
-rw-r--r--crypto/asn1/asn1_locl.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/crypto/asn1/asn1_locl.h b/crypto/asn1/asn1_locl.h
index 5f597bd..9470c7d 100644
--- a/crypto/asn1/asn1_locl.h
+++ b/crypto/asn1/asn1_locl.h
@@ -1,5 +1,5 @@
/*
- * Copyright 2005-2016 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 2005-2017 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
@@ -76,3 +76,7 @@ ASN1_BIT_STRING *c2i_ASN1_BIT_STRING(ASN1_BIT_STRING **a,
int i2c_ASN1_INTEGER(ASN1_INTEGER *a, unsigned char **pp);
ASN1_INTEGER *c2i_ASN1_INTEGER(ASN1_INTEGER **a, const unsigned char **pp,
long length);
+
+/* Internal functions used by x_int64.c */
+int c2i_uint64_int(uint64_t *ret, int *neg, const unsigned char **pp, long len);
+int i2c_uint64_int(unsigned char *p, uint64_t r, int neg);