File: constants.xml

package info (click to toggle)
php-doc 20081024-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 57,752 kB
  • ctags: 3,858
  • sloc: xml: 686,554; php: 19,446; perl: 610; cpp: 500; makefile: 336; sh: 114; awk: 28
file content (442 lines) | stat: -rw-r--r-- 10,551 bytes parent folder | download
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.8 $ -->
<appendix xml:id="openssl.constants" xmlns="http://docbook.org/ns/docbook">
 &reftitle.constants;
 &extension.constants;
  <section xml:id="openssl.purpose-check">
   <title>Purpose checking flags</title>
   <variablelist>
    <varlistentry>
     <term>
      <constant>X509_PURPOSE_SSL_CLIENT</constant> 
      (<type>integer</type>)
     </term>
     <listitem>
      <simpara>
     
      </simpara>
     </listitem>
    </varlistentry>
    <varlistentry>
     <term>
      <constant>X509_PURPOSE_SSL_SERVER</constant> 
      (<type>integer</type>)
     </term>
     <listitem>
      <simpara>
     
      </simpara>
     </listitem>
    </varlistentry>
    <varlistentry>
     <term>
      <constant>X509_PURPOSE_NS_SSL_SERVER</constant> 
      (<type>integer</type>)
     </term>
     <listitem>
      <simpara>
     
      </simpara>
     </listitem>
    </varlistentry>
    <varlistentry>
     <term>
      <constant>X509_PURPOSE_SMIME_SIGN</constant> 
      (<type>integer</type>)
     </term>
     <listitem>
      <simpara>
     
      </simpara>
     </listitem>
    </varlistentry>
    <varlistentry>
     <term>
      <constant>X509_PURPOSE_SMIME_ENCRYPT</constant> 
      (<type>integer</type>)
     </term>
     <listitem>
      <simpara>
     
      </simpara>
     </listitem>
    </varlistentry>
    <varlistentry>
     <term>
      <constant>X509_PURPOSE_CRL_SIGN</constant> 
      (<type>integer</type>)
     </term>
     <listitem>
      <simpara>
     
      </simpara>
     </listitem>
    </varlistentry>
    <varlistentry>
     <term>
      <constant>X509_PURPOSE_ANY</constant> 
      (<type>integer</type>)
     </term>
     <listitem>
      <simpara>
     
      </simpara>
     </listitem>
    </varlistentry>
   </variablelist>
  </section>

  <section xml:id="openssl.padding">
   <title>Padding flags</title>
   <variablelist>
  <varlistentry>
   <term>
    <constant>OPENSSL_PKCS1_PADDING</constant> 
    (<type>integer</type>)
   </term>
   <listitem>
    <simpara>
     
    </simpara>
   </listitem>
  </varlistentry>
  <varlistentry>
   <term>
    <constant>OPENSSL_SSLV23_PADDING</constant> 
    (<type>integer</type>)
   </term>
   <listitem>
    <simpara>
     
    </simpara>
   </listitem>
  </varlistentry>
  <varlistentry>
   <term>
    <constant>OPENSSL_NO_PADDING</constant> 
    (<type>integer</type>)
   </term>
   <listitem>
    <simpara>
     
    </simpara>
   </listitem>
  </varlistentry>
  <varlistentry>
   <term>
    <constant>OPENSSL_PKCS1_OAEP_PADDING</constant> 
    (<type>integer</type>)
   </term>
   <listitem>
    <simpara>
     
    </simpara>
   </listitem>
  </varlistentry>
 </variablelist>
 </section>

  <section xml:id="openssl.key-types">
   <title>Key types</title>
 <variablelist>
  <varlistentry>
   <term>
    <constant>OPENSSL_KEYTYPE_RSA</constant> 
    (<type>integer</type>)
   </term>
   <listitem>
    <simpara>
     
    </simpara>
   </listitem>
  </varlistentry>
  <varlistentry>
   <term>
    <constant>OPENSSL_KEYTYPE_DSA</constant> 
    (<type>integer</type>)
   </term>
   <listitem>
    <simpara>
     
    </simpara>
   </listitem>
  </varlistentry>
  <varlistentry>
   <term>
    <constant>OPENSSL_KEYTYPE_DH</constant> 
    (<type>integer</type>)
   </term>
   <listitem>
    <simpara>
     
    </simpara>
   </listitem>
  </varlistentry>
 </variablelist>
  </section>  

  <section xml:id="openssl.pkcs7.flags">
   <title>PKCS7 Flags/Constants</title>
   <para>
    The S/MIME functions make use of flags which are specified using a
    bitfield which can include one or more of the following values:
    <table>
     <title>PKCS7 CONSTANTS</title>
      <tgroup cols="2">
       <thead>
        <row>
         <entry>Constant</entry>
         <entry>Description</entry>
        </row>
       </thead>
       <tbody>
        <row>
         <entry>PKCS7_TEXT</entry>
         <entry>Adds text/plain content type headers to encrypted/signed
         message. If decrypting or verifying, it strips those headers from
         the output - if the decrypted or verified message is not of MIME type
         text/plain then an error will occur.</entry>
        </row>
        <row>
         <entry>PKCS7_BINARY</entry>
         <entry>Normally the input message is converted to "canonical" format
         which is effectively using CR and LF as end of line: as required by
         the S/MIME specification.  When this options is present, no
         translation occurs.  This is useful when handling binary data which
         may not be in MIME format.</entry>
        </row>
        <row>
         <entry>PKCS7_NOINTERN</entry>
         <entry>When verifying a message, certificates (if
           any) included in the message are normally searched for the
           signing certificate. With this option only the
           certificates specified in the <parameter>extracerts</parameter>
           parameter of <function>openssl_pkcs7_verify</function> are
           used.  The supplied certificates can still be used as
           untrusted CAs however.
         </entry>
        </row>
        <row>
         <entry>PKCS7_NOVERIFY</entry>
         <entry>Do not verify the signers certificate of a signed
         message.</entry>
        </row>
        <row>
         <entry>PKCS7_NOCHAIN</entry>
         <entry>Do not chain verification of signers certificates: that is
         don't use the certificates in the signed message as untrusted CAs.
         </entry>
        </row>
        <row>
         <entry>PKCS7_NOCERTS</entry>
         <entry>When signing a message the signer's certificate is normally
         included - with this option it is excluded.  This will reduce the
         size of the signed message but the verifier must have a copy of the
         signers certificate available locally (passed using the
         <parameter>extracerts</parameter> to
         <function>openssl_pkcs7_verify</function> for example).
         </entry>
        </row>
        <row>
         <entry>PKCS7_NOATTR</entry>
         <entry>Normally when a message is signed, a set of attributes are
         included which include the signing time and the supported symmetric
         algorithms.  With this option they are not included.
         </entry>
        </row>
        <row>
         <entry>PKCS7_DETACHED</entry>
         <entry>When signing a message, use cleartext signing with the MIME
         type multipart/signed.  This is the default
         if you do not specify any <parameter>flags</parameter> to
         <function>openssl_pkcs7_sign</function>.
         If you turn this option off, the message will be signed using
         opaque signing, which is more resistant to translation by mail relays
         but cannot be read by mail agents that do not support S/MIME.</entry>
        </row>
        <row>
         <entry>PKCS7_NOSIGS</entry>
         <entry>Don't try and verify the signatures on a message</entry>
        </row>
       </tbody>
      </tgroup>
     </table>
   </para>
   <note>
     <para>These constants were added in 4.0.6.</para>
   </note>
  </section>

  <section xml:id="openssl.signature-algos">
   <title>Signature Algorithms</title>
   <variablelist>
    <varlistentry>
     <term>
      <constant>OPENSSL_ALGO_SHA1</constant> 
      (<type>integer</type>)
     </term>
     <listitem>
      <simpara>
       Used as default algorithm by <function>openssl_sign</function> and
       <function>openssl_verify</function>.
      </simpara>
     </listitem>
    </varlistentry>
    <varlistentry>
     <term>
      <constant>OPENSSL_ALGO_MD5</constant> 
      (<type>integer</type>)
     </term>
     <listitem>
      <simpara>

      </simpara>
     </listitem>
    </varlistentry>
    <varlistentry>
     <term>
      <constant>OPENSSL_ALGO_MD4</constant> 
      (<type>integer</type>)
     </term>
     <listitem>
      <simpara>

      </simpara>
     </listitem>
    </varlistentry>
    <varlistentry>
     <term>
      <constant>OPENSSL_ALGO_MD2</constant> 
      (<type>integer</type>)
     </term>
     <listitem>
      <simpara>

      </simpara>
     </listitem>
    </varlistentry>
   </variablelist>

   <note>
     <para>These constants were added in 5.0.0.</para>
   </note>
  </section>

  <section xml:id="openssl.ciphers">
   <title>Ciphers</title>
   <variablelist>
  <varlistentry>
   <term>
    <constant>OPENSSL_CIPHER_RC2_40</constant>
     (<type>integer</type>)
   </term>
   <listitem>
    <simpara>

    </simpara>
   </listitem>
  </varlistentry>
  <varlistentry>
   <term>
    <constant>OPENSSL_CIPHER_RC2_128</constant>
     (<type>integer</type>)
   </term>
   <listitem>
    <simpara>

    </simpara>
   </listitem>
  </varlistentry>
  <varlistentry>
   <term>
    <constant>OPENSSL_CIPHER_RC2_64</constant>
     (<type>integer</type>)
   </term>
   <listitem>
    <simpara>

    </simpara>
   </listitem>
  </varlistentry>
  <varlistentry>
   <term>
    <constant>OPENSSL_CIPHER_DES</constant>
     (<type>integer</type>)
   </term>
   <listitem>
    <simpara>

    </simpara>
   </listitem>
  </varlistentry>
  <varlistentry>
   <term>
    <constant>OPENSSL_CIPHER_3DES</constant>
     (<type>integer</type>)
   </term>
   <listitem>
    <simpara>

    </simpara>
   </listitem>
  </varlistentry>
 </variablelist>
  <note>
   <para>These constants were added in 4.3.0.</para>
  </note>
  </section> 

 <section xml:id="openssl.constversion">
  <title>Version constants</title>
  <variablelist>
    <varlistentry>
      <term>
        <constant>OPENSSL_VERSION_TEXT</constant>
        (<type>string</type>)
      </term>
      <listitem>
        <simpara>

        </simpara>
      </listitem>
    </varlistentry>
    <varlistentry>
      <term>
        <constant>OPENSSL_VERSION_NUMBER</constant>
        (<type>integer</type>)
      </term>
      <listitem>
        <simpara>

        </simpara>
      </listitem>
    </varlistentry>
  </variablelist>
  <note>
   <para>These constants were added in 5.2.0.</para>
  </note>
 </section>
 
</appendix>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->