X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=doc%2Fman3%2FASN1_INTEGER_get_int64.pod;h=cf0ff65686908d7562007f127cdff7657f6b8ee9;hp=f61268d6ac39765f1d72729a9d971bdd9cc440ff;hb=9c0586d5fc7988d2f8544f7884572a3b430406f6;hpb=3ba4dac67a63c2d2589d46095d989b301cd62650 diff --git a/doc/man3/ASN1_INTEGER_get_int64.pod b/doc/man3/ASN1_INTEGER_get_int64.pod index f61268d6ac..cf0ff65686 100644 --- a/doc/man3/ASN1_INTEGER_get_int64.pod +++ b/doc/man3/ASN1_INTEGER_get_int64.pod @@ -11,10 +11,10 @@ ASN1_INTEGER_get_int64, ASN1_INTEGER_get, ASN1_INTEGER_set_int64, ASN1_INTEGER_s #include int ASN1_INTEGER_get_int64(int64_t *pr, const ASN1_INTEGER *a); - int ASN1_INTEGER_get(const ASN1_INTEGER *a, long v); + long ASN1_INTEGER_get(const ASN1_INTEGER *a); int ASN1_INTEGER_set_int64(ASN1_INTEGER *a, int64_t r); - long ASN1_INTEGER_set(const ASN1_INTEGER *a); + int ASN1_INTEGER_set(const ASN1_INTEGER *a, long v); int ASN1_INTEGER_get_uint64(uint64_t *pr, const ASN1_INTEGER *a); int ASN1_INTEGER_set_uint64(ASN1_INTEGER *a, uint64_t r); @@ -37,7 +37,7 @@ These functions convert to and from B and B structures. ASN1_INTEGER_get_int64() converts an B into an B type -If successful it returns 1 and sets B<*pr> to the value of B. If it fails +If successful it returns 1 and sets I<*pr> to the value of I. If it fails (due to invalid type or the value being too big to fit into an B type) it returns 0. @@ -45,26 +45,26 @@ ASN1_INTEGER_get_uint64() is similar to ASN1_INTEGER_get_int64_t() except it converts to a B type and an error is returned if the passed integer is negative. -ASN1_INTEGER_get() also returns the value of B but it returns 0 if B is +ASN1_INTEGER_get() also returns the value of I but it returns 0 if I is NULL and -1 on error (which is ambiguous because -1 is a legitimate value for an B). New applications should use ASN1_INTEGER_get_int64() instead. -ASN1_INTEGER_set_int64() sets the value of B B to the -B value B. +ASN1_INTEGER_set_int64() sets the value of B I to the +B value I. -ASN1_INTEGER_set_uint64() sets the value of B B to the -B value B. +ASN1_INTEGER_set_uint64() sets the value of B I to the +B value I. -ASN1_INTEGER_set() sets the value of B B to the B value -B. +ASN1_INTEGER_set() sets the value of B I to the I value +I. -BN_to_ASN1_INTEGER() converts B B to an B. If B -is NULL a new B structure is returned. If B is not NULL then +BN_to_ASN1_INTEGER() converts B I to an B. If I +is NULL a new B structure is returned. If I is not NULL then the existing structure will be used instead. -ASN1_INTEGER_to_BN() converts ASN1_INTEGER B into a B. If B is -NULL a new B structure is returned. If B is not NULL then the +ASN1_INTEGER_to_BN() converts ASN1_INTEGER I into a B. If I is +NULL a new B structure is returned. If I is not NULL then the existing structure will be used instead. ASN1_ENUMERATED_get_int64(), ASN1_ENUMERATED_set_int64(), @@ -72,8 +72,8 @@ ASN1_ENUMERATED_set(), BN_to_ASN1_ENUMERATED() and ASN1_ENUMERATED_to_BN() behave in an identical way to their ASN1_INTEGER counterparts except they operate on an B value. -ASN1_ENUMERATED_get() returns the value of B in a similar way to -ASN1_INTEGER_get() but it returns B<0xffffffffL> if the value of B will not +ASN1_ENUMERATED_get() returns the value of I in a similar way to +ASN1_INTEGER_get() but it returns B<0xffffffffL> if the value of I will not fit in a long type. New applications should use ASN1_ENUMERATED_get_int64() instead. @@ -119,13 +119,13 @@ L ASN1_INTEGER_set_int64(), ASN1_INTEGER_get_int64(), ASN1_ENUMERATED_set_int64() and ASN1_ENUMERATED_get_int64() -were added to OpenSSL 1.1.0. +were added in OpenSSL 1.1.0. =head1 COPYRIGHT -Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved. +Copyright 2015-2018 The OpenSSL Project Authors. All Rights Reserved. -Licensed under the OpenSSL license (the "License"). You may not use +Licensed under the Apache License 2.0 (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 L.