Debian Codegraph @

templates/man3/X509_NAME_get_index_by_NID.3ssl.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:51+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 # #-#-#-#-# archlinux: X509_NAME_get_index_by_NID.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
20 #
21 #. #-#-#-#-# archlinux: X509_NAME_get_index_by_NID.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
22 #. Required to disable full justification in groff 1.23.0.
23 #. ========================================================================
24 #. type: IX
25 #. #-#-#-#-# debian-trixie: X509_NAME_get_index_by_NID.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
26 #. ========================================================================
27 #. type: IX
28 #. #-#-#-#-# debian-unstable: X509_NAME_get_index_by_NID.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
29 #. ========================================================================
30 #. type: IX
31 #: archlinux debian-trixie debian-unstable
32 #, no-wrap
33 msgid "Title"
34 msgstr ""
35
36 #
37 #. Required to disable full justification in groff 1.23.0.
38 #. ========================================================================
39 #. type: IX
40 #: archlinux
41 #, no-wrap
42 msgid "X509_NAME_GET_INDEX_BY_NID 3ssl"
43 msgstr ""
44
45 #. type: TH
46 #: archlinux debian-trixie debian-unstable
47 #, no-wrap
48 msgid "X509_NAME_GET_INDEX_BY_NID"
49 msgstr ""
50
51 #. type: TH
52 #: archlinux debian-trixie debian-unstable
53 #, no-wrap
54 msgid "2026-04-07"
55 msgstr ""
56
57 #. type: TH
58 #: archlinux debian-unstable
59 #, no-wrap
60 msgid "3.6.2"
61 msgstr ""
62
63 #. type: TH
64 #: archlinux debian-trixie debian-unstable
65 #, no-wrap
66 msgid "OpenSSL"
67 msgstr ""
68
69 #. type: SH
70 #: archlinux debian-trixie debian-unstable
71 #, no-wrap
72 msgid "NAME"
73 msgstr ""
74
75 #. type: Plain text
76 #: archlinux debian-trixie debian-unstable
77 msgid ""
78 "X509_NAME_get_index_by_NID, X509_NAME_get_index_by_OBJ, X509_NAME_get_entry, "
79 "X509_NAME_entry_count, X509_NAME_get_text_by_NID, X509_NAME_get_text_by_OBJ "
80 "- X509_NAME lookup and enumeration functions"
81 msgstr ""
82
83 #. type: IX
84 #: archlinux debian-trixie debian-unstable
85 #, no-wrap
86 msgid "SYNOPSIS"
87 msgstr ""
88
89 #. type: IX
90 #: archlinux debian-trixie debian-unstable
91 #, no-wrap
92 msgid "Header"
93 msgstr ""
94
95 #. type: Plain text
96 #: archlinux debian-trixie debian-unstable
97 #, no-wrap
98 msgid ""
99 "\\& #include E<lt>openssl/x509.hE<gt>\n"
100 "\\&\n"
101 "\\& int X509_NAME_get_index_by_NID(const X509_NAME *name, int nid, int lastpos);\n"
102 "\\& int X509_NAME_get_index_by_OBJ(const X509_NAME *name,\n"
103 "\\& const ASN1_OBJECT *obj, int lastpos);\n"
104 "\\&\n"
105 "\\& int X509_NAME_entry_count(const X509_NAME *name);\n"
106 "\\& X509_NAME_ENTRY *X509_NAME_get_entry(const X509_NAME *name, int loc);\n"
107 "\\&\n"
108 "\\& int X509_NAME_get_text_by_NID(const X509_NAME *name, int nid,\n"
109 "\\& char *buf, int len);\n"
110 "\\& int X509_NAME_get_text_by_OBJ(const X509_NAME *name, const ASN1_OBJECT *obj,\n"
111 "\\& char *buf, int len);\n"
112 msgstr ""
113
114 #. type: IX
115 #: archlinux debian-trixie debian-unstable
116 #, no-wrap
117 msgid "DESCRIPTION"
118 msgstr ""
119
120 #. type: Plain text
121 #: archlinux debian-unstable
122 msgid ""
123 "These functions allow an B<X509_NAME> structure to be examined. The "
124 "\\&B<X509_NAME> structure is the same as the B<Name> type defined in RFC "
125 "5280 (and elsewhere) and used for example in certificate subject and issuer "
126 "names."
127 msgstr ""
128
129 #. type: Plain text
130 #: archlinux
131 msgid ""
132 "\\&B<X509_NAME_get_index_by_NID()> and B<X509_NAME_get_index_by_OBJ()> "
133 "retrieve the next index matching B<nid> or B<obj> after B<lastpos>. "
134 "B<lastpos> should initially be set to -1. If there are no more entries -1 is "
135 "returned. If B<nid> is invalid (doesn\\*(Aqt correspond to a valid OID) "
136 "then -2 is returned."
137 msgstr ""
138
139 #. type: Plain text
140 #: archlinux debian-trixie debian-unstable
141 msgid ""
142 "\\&B<X509_NAME_entry_count()> returns the total number of entries in B<name>."
143 msgstr ""
144
145 #. type: Plain text
146 #: archlinux debian-trixie debian-unstable
147 msgid ""
148 "\\&B<X509_NAME_get_entry()> retrieves the B<X509_NAME_ENTRY> from B<name> "
149 "corresponding to index B<loc>. Acceptable values for B<loc> run from 0 to "
150 "(X509_NAME_entry_count(name) - 1). The value returned is an internal pointer "
151 "which must not be freed."
152 msgstr ""
153
154 #. type: Plain text
155 #: archlinux debian-trixie debian-unstable
156 msgid ""
157 "\\&B<X509_NAME_get_text_by_NID()>, B<X509_NAME_get_text_by_OBJ()> retrieve "
158 "the \"text\" from the first entry in B<name> which matches B<nid> or "
159 "\\&B<obj>, if no such entry exists -1 is returned. At most B<len> bytes will "
160 "be written and the text written to B<buf> will be null terminated. The "
161 "length of the output string written is returned excluding the terminating "
162 "null. If B<buf> is E<lt>NULLE<gt> then the amount of space needed in B<buf> "
163 "(excluding the final null) is returned."
164 msgstr ""
165
166 #. type: IX
167 #: archlinux debian-trixie debian-unstable
168 #, no-wrap
169 msgid "NOTES"
170 msgstr ""
171
172 #. type: Plain text
173 #: archlinux debian-trixie debian-unstable
174 msgid ""
175 "\\&B<X509_NAME_get_text_by_NID()> and B<X509_NAME_get_text_by_OBJ()> should "
176 "be considered deprecated because they have various limitations which make "
177 "them of minimal use in practice. They can only find the first matching entry "
178 "and will copy the contents of the field verbatim: this can be highly "
179 "confusing if the target is a multicharacter string type like a BMPString or "
180 "a UTF8String."
181 msgstr ""
182
183 #. type: Plain text
184 #: archlinux debian-trixie debian-unstable
185 msgid ""
186 "For a more general solution B<X509_NAME_get_index_by_NID()> or "
187 "\\&B<X509_NAME_get_index_by_OBJ()> should be used followed by "
188 "\\&B<X509_NAME_get_entry()> on any matching indices and then the various "
189 "B<X509_NAME_ENTRY> utility functions on the result."
190 msgstr ""
191
192 #. type: Plain text
193 #: archlinux debian-trixie debian-unstable
194 msgid ""
195 "The list of all relevant B<NID_*> and B<OBJ_* codes> can be found in the "
196 "source code header files I<E<lt>openssl/obj_mac.hE<gt>> and/or "
197 "\\&I<E<lt>openssl/objects.hE<gt>>."
198 msgstr ""
199
200 #. type: Plain text
201 #: archlinux debian-trixie debian-unstable
202 msgid ""
203 "Applications which could pass invalid NIDs to "
204 "B<X509_NAME_get_index_by_NID()> should check for the return value of -2. "
205 "Alternatively the NID validity can be determined first by checking "
206 "OBJ_nid2obj(nid) is not NULL."
207 msgstr ""
208
209 #. type: IX
210 #: archlinux debian-trixie debian-unstable
211 #, no-wrap
212 msgid "RETURN VALUES"
213 msgstr ""
214
215 #. type: Plain text
216 #: archlinux debian-trixie debian-unstable
217 msgid ""
218 "\\&B<X509_NAME_get_index_by_NID()> and B<X509_NAME_get_index_by_OBJ()> "
219 "return the index of the next matching entry or -1 if not found. "
220 "\\&B<X509_NAME_get_index_by_NID()> can also return -2 if the supplied NID is "
221 "invalid."
222 msgstr ""
223
224 #. type: Plain text
225 #: archlinux debian-trixie debian-unstable
226 msgid ""
227 "\\&B<X509_NAME_entry_count()> returns the total number of entries, and 0 for "
228 "failure."
229 msgstr ""
230
231 #. type: Plain text
232 #: archlinux debian-trixie debian-unstable
233 msgid ""
234 "\\&B<X509_NAME_get_entry()> returns an B<X509_NAME> pointer to the requested "
235 "entry or B<NULL> if the index is invalid."
236 msgstr ""
237
238 #. type: IX
239 #: archlinux debian-trixie debian-unstable
240 #, no-wrap
241 msgid "EXAMPLES"
242 msgstr ""
243
244 #. type: Plain text
245 #: archlinux debian-trixie debian-unstable
246 msgid "Process all entries:"
247 msgstr ""
248
249 #. type: Plain text
250 #: archlinux debian-trixie debian-unstable
251 #, no-wrap
252 msgid ""
253 "\\& int i;\n"
254 "\\& X509_NAME_ENTRY *e;\n"
255 "\\&\n"
256 "\\& for (i = 0; i E<lt> X509_NAME_entry_count(nm); i++) {\n"
257 "\\& e = X509_NAME_get_entry(nm, i);\n"
258 "\\& /* Do something with e */\n"
259 "\\& }\n"
260 msgstr ""
261
262 #. type: Plain text
263 #: archlinux debian-trixie debian-unstable
264 msgid "Process all commonName entries:"
265 msgstr ""
266
267 #. type: Plain text
268 #: archlinux debian-trixie debian-unstable
269 #, no-wrap
270 msgid ""
271 "\\& int lastpos = -1;\n"
272 "\\& X509_NAME_ENTRY *e;\n"
273 "\\&\n"
274 "\\& for (;;) {\n"
275 "\\& lastpos = X509_NAME_get_index_by_NID(nm, NID_commonName, lastpos);\n"
276 "\\& if (lastpos == -1)\n"
277 "\\& break;\n"
278 "\\& e = X509_NAME_get_entry(nm, lastpos);\n"
279 "\\& /* Do something with e */\n"
280 "\\& }\n"
281 msgstr ""
282
283 #. type: IX
284 #: archlinux debian-trixie debian-unstable
285 #, no-wrap
286 msgid "SEE ALSO"
287 msgstr ""
288
289 #. type: Plain text
290 #: archlinux debian-trixie debian-unstable
291 msgid "\\&B<ERR_get_error>\\|(3), B<d2i_X509_NAME>\\|(3)"
292 msgstr ""
293
294 #. type: IX
295 #: archlinux debian-trixie debian-unstable
296 #, no-wrap
297 msgid "COPYRIGHT"
298 msgstr ""
299
300 #. type: Plain text
301 #: archlinux debian-unstable
302 msgid "Copyright 2002-2025 The OpenSSL Project Authors. All Rights Reserved."
303 msgstr ""
304
305 #. type: Plain text
306 #: archlinux debian-trixie debian-unstable
307 msgid ""
308 "Licensed under the Apache License 2.0 (the \"License\"). You may not use "
309 "this file except in compliance with the License. You can obtain a copy in "
310 "the file LICENSE in the source distribution or at E<lt>https://"
311 "www.openssl.org/source/license.htmlE<gt>."
312 msgstr ""
313
314 #. ========================================================================
315 #. type: IX
316 #: debian-trixie debian-unstable
317 #, no-wrap
318 msgid "X509_NAME_GET_INDEX_BY_NID 3SSL"
319 msgstr ""
320
321 #. type: TH
322 #: debian-trixie
323 #, no-wrap
324 msgid "3.5.6"
325 msgstr ""
326
327 #. type: Plain text
328 #: debian-trixie
329 msgid ""
330 "These functions allow an B<X509_NAME> structure to be examined. The "
331 "\\&B<X509_NAME> structure is the same as the B<Name> type defined in RFC2459 "
332 "(and elsewhere) and used for example in certificate subject and issuer names."
333 msgstr ""
334
335 #. type: Plain text
336 #: debian-trixie debian-unstable
337 msgid ""
338 "\\&B<X509_NAME_get_index_by_NID()> and B<X509_NAME_get_index_by_OBJ()> "
339 "retrieve the next index matching B<nid> or B<obj> after B<lastpos>. "
340 "B<lastpos> should initially be set to -1. If there are no more entries -1 is "
341 "returned. If B<nid> is invalid (doesn't correspond to a valid OID) then -2 "
342 "is returned."
343 msgstr ""
344
345 #. type: Plain text
346 #: debian-trixie
347 msgid "Copyright 2002-2021 The OpenSSL Project Authors. All Rights Reserved."
348 msgstr ""