diff options
Diffstat (limited to 'src/lib/libcrypto/man/ASN1_STRING_new.3')
| -rw-r--r-- | src/lib/libcrypto/man/ASN1_STRING_new.3 | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/src/lib/libcrypto/man/ASN1_STRING_new.3 b/src/lib/libcrypto/man/ASN1_STRING_new.3 new file mode 100644 index 0000000000..cd28b98af6 --- /dev/null +++ b/src/lib/libcrypto/man/ASN1_STRING_new.3 | |||
| @@ -0,0 +1,58 @@ | |||
| 1 | .Dd July 17, 2014 | ||
| 2 | .Dt ASN1_STRING_NEW 3 | ||
| 3 | .Os | ||
| 4 | .Sh NAME | ||
| 5 | .Nm ASN1_STRING_new , | ||
| 6 | .Nm ASN1_STRING_type_new , | ||
| 7 | .Nm ASN1_STRING_free | ||
| 8 | .Nd ASN1_STRING allocation functions | ||
| 9 | .Sh SYNOPSIS | ||
| 10 | .In openssl/asn1.h | ||
| 11 | .Ft ASN1_STRING * | ||
| 12 | .Fo ASN1_STRING_new | ||
| 13 | .Fa void | ||
| 14 | .Fc | ||
| 15 | .Ft ASN1_STRING * | ||
| 16 | .Fo ASN1_STRING_type_new | ||
| 17 | .Fa "int type" | ||
| 18 | .Fc | ||
| 19 | .Ft void | ||
| 20 | .Fo ASN1_STRING_free | ||
| 21 | .Fa "ASN1_STRING *a" | ||
| 22 | .Fc | ||
| 23 | .Sh DESCRIPTION | ||
| 24 | .Fn ASN1_STRING_new | ||
| 25 | returns an allocated | ||
| 26 | .Vt ASN1_STRING | ||
| 27 | structure. | ||
| 28 | Its type is undefined. | ||
| 29 | .Pp | ||
| 30 | .Fn ASN1_STRING_type_new | ||
| 31 | returns an allocated | ||
| 32 | .Vt ASN1_STRING | ||
| 33 | structure of type | ||
| 34 | .Fa type . | ||
| 35 | .Pp | ||
| 36 | .Fn ASN1_STRING_free | ||
| 37 | frees up | ||
| 38 | .Fa a . | ||
| 39 | .Sh NOTES | ||
| 40 | Other string types call the ASN1_STRING functions. | ||
| 41 | For example | ||
| 42 | .Fn ASN1_OCTET_STRING_new | ||
| 43 | calls | ||
| 44 | .Fn ASN1_STRING_type V_ASN1_OCTET_STRING . | ||
| 45 | .Sh RETURN VALUES | ||
| 46 | .Fn ASN1_STRING_new | ||
| 47 | and | ||
| 48 | .Fn ASN1_STRING_type_new | ||
| 49 | return a valid | ||
| 50 | .Vt ASN1_STRING | ||
| 51 | structure or | ||
| 52 | .Dv NULL | ||
| 53 | if an error occurred. | ||
| 54 | .Pp | ||
| 55 | .Fn ASN1_STRING_free | ||
| 56 | does not return a value. | ||
| 57 | .Sh SEE ALSO | ||
| 58 | .Xr ERR_get_error 3 | ||
