blob: 00968f4995230fef52f34cdf952418cd2f5bc9ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
.Dd $Mdocdate: September 9 2015 $
.Dt ASN1_STRING_NEW 3
.Os
.Sh NAME
.Nm ASN1_STRING_new ,
.Nm ASN1_STRING_type_new ,
.Nm ASN1_STRING_free
.Nd ASN1_STRING allocation functions
.Sh SYNOPSIS
.In openssl/asn1.h
.Ft ASN1_STRING *
.Fo ASN1_STRING_new
.Fa void
.Fc
.Ft ASN1_STRING *
.Fo ASN1_STRING_type_new
.Fa "int type"
.Fc
.Ft void
.Fo ASN1_STRING_free
.Fa "ASN1_STRING *a"
.Fc
.Sh DESCRIPTION
.Fn ASN1_STRING_new
returns an allocated
.Vt ASN1_STRING
structure.
Its type is undefined.
.Pp
.Fn ASN1_STRING_type_new
returns an allocated
.Vt ASN1_STRING
structure of type
.Fa type .
.Pp
.Fn ASN1_STRING_free
frees up
.Fa a .
.Sh NOTES
Other string types call the ASN1_STRING functions.
For example
.Fn ASN1_OCTET_STRING_new
calls
.Fn ASN1_STRING_type V_ASN1_OCTET_STRING .
.Sh RETURN VALUES
.Fn ASN1_STRING_new
and
.Fn ASN1_STRING_type_new
return a valid
.Vt ASN1_STRING
structure or
.Dv NULL
if an error occurred.
.Pp
.Fn ASN1_STRING_free
does not return a value.
.Sh SEE ALSO
.Xr ERR_get_error 3
|