X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=doc%2Fman3%2FASN1_INTEGER_get_int64.pod;h=53a9143800a132766d47e2f371b60f1402f43c58;hp=7cc7584c4dce3fa263d6d3f08a64facbfe5a924a;hb=e0624f0d702b57e23ecaf5236ce1bafdd85ec649;hpb=4746f25ac62e5bbdc07eedcec9c9a27547577141 diff --git a/doc/man3/ASN1_INTEGER_get_int64.pod b/doc/man3/ASN1_INTEGER_get_int64.pod index 7cc7584c4d..53a9143800 100644 --- a/doc/man3/ASN1_INTEGER_get_int64.pod +++ b/doc/man3/ASN1_INTEGER_get_int64.pod @@ -22,10 +22,10 @@ ASN1_INTEGER_get_int64, ASN1_INTEGER_get, ASN1_INTEGER_set_int64, ASN1_INTEGER_s ASN1_INTEGER *BN_to_ASN1_INTEGER(const BIGNUM *bn, ASN1_INTEGER *ai); BIGNUM *ASN1_INTEGER_to_BN(const ASN1_INTEGER *ai, BIGNUM *bn); - int ASN1_ENUMERATED_get_int64(int64_t *pr, const ASN1_INTEGER *a); + int ASN1_ENUMERATED_get_int64(int64_t *pr, const ASN1_ENUMERATED *a); long ASN1_ENUMERATED_get(const ASN1_ENUMERATED *a); - int ASN1_ENUMERATED_set_int64(ASN1_INTEGER *a, int64_t r); + int ASN1_ENUMERATED_set_int64(ASN1_ENUMERATED *a, int64_t r); int ASN1_ENUMERATED_set(ASN1_ENUMERATED *a, long v); ASN1_ENUMERATED *BN_to_ASN1_ENUMERATED(BIGNUM *bn, ASN1_ENUMERATED *ai); @@ -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,7 +119,7 @@ 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