579
600
<em class="parameter"><code><span class="type">gnutls_datum_t</span> *p</code></em>,
580
601
<em class="parameter"><code><span class="type">gnutls_datum_t</span> *q</code></em>,
581
602
<em class="parameter"><code><span class="type">gnutls_datum_t</span> *u</code></em>);
582
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-privkey-sign-data" title="gnutls_x509_privkey_sign_data ()">gnutls_x509_privkey_sign_data</a> (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-privkey-t" title="gnutls_x509_privkey_t"><span class="type">gnutls_x509_privkey_t</span></a> key</code></em>,
583
<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-digest-algorithm-t" title="enum gnutls_digest_algorithm_t"><span class="type">gnutls_digest_algorithm_t</span></a> digest</code></em>,
584
<em class="parameter"><code>unsigned <a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> flags</code></em>,
585
<em class="parameter"><code>const <span class="type">gnutls_datum_t</span> *data</code></em>,
586
<em class="parameter"><code><span class="type">void</span> *signature</code></em>,
587
<em class="parameter"><code><span class="type">size_t</span> *signature_size</code></em>);
588
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-privkey-verify-data" title="gnutls_x509_privkey_verify_data ()">gnutls_x509_privkey_verify_data</a> (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-privkey-t" title="gnutls_x509_privkey_t"><span class="type">gnutls_x509_privkey_t</span></a> key</code></em>,
589
<em class="parameter"><code>unsigned <a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> flags</code></em>,
590
<em class="parameter"><code>const <span class="type">gnutls_datum_t</span> *data</code></em>,
591
<em class="parameter"><code>const <span class="type">gnutls_datum_t</span> *signature</code></em>);
592
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crt-verify-data" title="gnutls_x509_crt_verify_data ()">gnutls_x509_crt_verify_data</a> (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crt-t" title="gnutls_x509_crt_t"><span class="type">gnutls_x509_crt_t</span></a> crt</code></em>,
593
<em class="parameter"><code>unsigned <a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> flags</code></em>,
594
<em class="parameter"><code>const <span class="type">gnutls_datum_t</span> *data</code></em>,
595
<em class="parameter"><code>const <span class="type">gnutls_datum_t</span> *signature</code></em>);
596
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crt-verify-hash" title="gnutls_x509_crt_verify_hash ()">gnutls_x509_crt_verify_hash</a> (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crt-t" title="gnutls_x509_crt_t"><span class="type">gnutls_x509_crt_t</span></a> crt</code></em>,
597
<em class="parameter"><code>unsigned <a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> flags</code></em>,
598
<em class="parameter"><code>const <span class="type">gnutls_datum_t</span> *hash</code></em>,
599
<em class="parameter"><code>const <span class="type">gnutls_datum_t</span> *signature</code></em>);
600
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crt-get-verify-algorithm" title="gnutls_x509_crt_get_verify_algorithm ()">gnutls_x509_crt_get_verify_algorithm</a>
601
(<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crt-t" title="gnutls_x509_crt_t"><span class="type">gnutls_x509_crt_t</span></a> crt</code></em>,
602
<em class="parameter"><code>const <span class="type">gnutls_datum_t</span> *signature</code></em>,
603
<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-digest-algorithm-t" title="enum gnutls_digest_algorithm_t"><span class="type">gnutls_digest_algorithm_t</span></a> *hash</code></em>);
604
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-privkey-sign-hash" title="gnutls_x509_privkey_sign_hash ()">gnutls_x509_privkey_sign_hash</a> (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-privkey-t" title="gnutls_x509_privkey_t"><span class="type">gnutls_x509_privkey_t</span></a> key</code></em>,
605
<em class="parameter"><code>const <span class="type">gnutls_datum_t</span> *hash</code></em>,
606
<em class="parameter"><code><span class="type">gnutls_datum_t</span> *signature</code></em>);
607
struct <a class="link" href="gnutls-x509.html#gnutls-x509-crq-int" title="struct gnutls_x509_crq_int">gnutls_x509_crq_int</a>;
608
typedef <a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t">gnutls_x509_crq_t</a>;
609
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-print" title="gnutls_x509_crq_print ()">gnutls_x509_crq_print</a> (<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
603
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-print" title="gnutls_x509_crq_print ()">gnutls_x509_crq_print</a> (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
610
604
<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-certificate-print-formats-t" title="enum gnutls_certificate_print_formats_t"><span class="type">gnutls_certificate_print_formats_t</span></a> format</code></em>,
611
605
<em class="parameter"><code><span class="type">gnutls_datum_t</span> *out</code></em>);
612
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-init" title="gnutls_x509_crq_init ()">gnutls_x509_crq_init</a> (<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> *crq</code></em>);
613
<span class="returnvalue">void</span> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-deinit" title="gnutls_x509_crq_deinit ()">gnutls_x509_crq_deinit</a> (<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>);
614
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-import" title="gnutls_x509_crq_import ()">gnutls_x509_crq_import</a> (<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
606
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-init" title="gnutls_x509_crq_init ()">gnutls_x509_crq_init</a> (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> *crq</code></em>);
607
<span class="returnvalue">void</span> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-deinit" title="gnutls_x509_crq_deinit ()">gnutls_x509_crq_deinit</a> (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>);
608
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-import" title="gnutls_x509_crq_import ()">gnutls_x509_crq_import</a> (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
615
609
<em class="parameter"><code>const <span class="type">gnutls_datum_t</span> *data</code></em>,
616
610
<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crt-fmt-t" title="enum gnutls_x509_crt_fmt_t"><span class="type">gnutls_x509_crt_fmt_t</span></a> format</code></em>);
617
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-get-dn" title="gnutls_x509_crq_get_dn ()">gnutls_x509_crq_get_dn</a> (<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
611
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-get-dn" title="gnutls_x509_crq_get_dn ()">gnutls_x509_crq_get_dn</a> (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
618
612
<em class="parameter"><code><span class="type">char</span> *buf</code></em>,
619
613
<em class="parameter"><code><span class="type">size_t</span> *sizeof_buf</code></em>);
620
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-get-dn-oid" title="gnutls_x509_crq_get_dn_oid ()">gnutls_x509_crq_get_dn_oid</a> (<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
614
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-get-dn-oid" title="gnutls_x509_crq_get_dn_oid ()">gnutls_x509_crq_get_dn_oid</a> (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
621
615
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> indx</code></em>,
622
616
<em class="parameter"><code><span class="type">void</span> *oid</code></em>,
623
617
<em class="parameter"><code><span class="type">size_t</span> *sizeof_oid</code></em>);
624
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-get-dn-by-oid" title="gnutls_x509_crq_get_dn_by_oid ()">gnutls_x509_crq_get_dn_by_oid</a> (<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
618
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-get-dn-by-oid" title="gnutls_x509_crq_get_dn_by_oid ()">gnutls_x509_crq_get_dn_by_oid</a> (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
625
619
<em class="parameter"><code>const <span class="type">char</span> *oid</code></em>,
626
620
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> indx</code></em>,
627
621
<em class="parameter"><code>unsigned <a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> raw_flag</code></em>,
628
622
<em class="parameter"><code><span class="type">void</span> *buf</code></em>,
629
623
<em class="parameter"><code><span class="type">size_t</span> *sizeof_buf</code></em>);
630
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-set-dn-by-oid" title="gnutls_x509_crq_set_dn_by_oid ()">gnutls_x509_crq_set_dn_by_oid</a> (<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
624
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-set-dn-by-oid" title="gnutls_x509_crq_set_dn_by_oid ()">gnutls_x509_crq_set_dn_by_oid</a> (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
631
625
<em class="parameter"><code>const <span class="type">char</span> *oid</code></em>,
632
626
<em class="parameter"><code>unsigned <a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> raw_flag</code></em>,
633
627
<em class="parameter"><code>const <span class="type">void</span> *data</code></em>,
634
628
<em class="parameter"><code>unsigned <a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> sizeof_data</code></em>);
635
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-set-version" title="gnutls_x509_crq_set_version ()">gnutls_x509_crq_set_version</a> (<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
629
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-set-version" title="gnutls_x509_crq_set_version ()">gnutls_x509_crq_set_version</a> (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
636
630
<em class="parameter"><code>unsigned <a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> version</code></em>);
637
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-get-version" title="gnutls_x509_crq_get_version ()">gnutls_x509_crq_get_version</a> (<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>);
638
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-set-key" title="gnutls_x509_crq_set_key ()">gnutls_x509_crq_set_key</a> (<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
639
<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-privkey-t" title="gnutls_x509_privkey_t"><span class="type">gnutls_x509_privkey_t</span></a> key</code></em>);
640
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-sign2" title="gnutls_x509_crq_sign2 ()">gnutls_x509_crq_sign2</a> (<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
641
<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-privkey-t" title="gnutls_x509_privkey_t"><span class="type">gnutls_x509_privkey_t</span></a> key</code></em>,
642
<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-digest-algorithm-t" title="enum gnutls_digest_algorithm_t"><span class="type">gnutls_digest_algorithm_t</span></a> dig</code></em>,
643
<em class="parameter"><code>unsigned <a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> flags</code></em>);
644
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-sign" title="gnutls_x509_crq_sign ()">gnutls_x509_crq_sign</a> (<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
631
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-get-version" title="gnutls_x509_crq_get_version ()">gnutls_x509_crq_get_version</a> (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>);
632
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-set-key" title="gnutls_x509_crq_set_key ()">gnutls_x509_crq_set_key</a> (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
645
633
<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-privkey-t" title="gnutls_x509_privkey_t"><span class="type">gnutls_x509_privkey_t</span></a> key</code></em>);
646
634
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-set-challenge-password" title="gnutls_x509_crq_set_challenge_password ()">gnutls_x509_crq_set_challenge_password</a>
647
(<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
635
(<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
648
636
<em class="parameter"><code>const <span class="type">char</span> *pass</code></em>);
649
637
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-get-challenge-password" title="gnutls_x509_crq_get_challenge_password ()">gnutls_x509_crq_get_challenge_password</a>
650
(<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
638
(<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
651
639
<em class="parameter"><code><span class="type">char</span> *pass</code></em>,
652
640
<em class="parameter"><code><span class="type">size_t</span> *sizeof_pass</code></em>);
653
641
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-set-attribute-by-oid" title="gnutls_x509_crq_set_attribute_by_oid ()">gnutls_x509_crq_set_attribute_by_oid</a>
654
(<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
642
(<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
655
643
<em class="parameter"><code>const <span class="type">char</span> *oid</code></em>,
656
644
<em class="parameter"><code><span class="type">void</span> *buf</code></em>,
657
645
<em class="parameter"><code><span class="type">size_t</span> sizeof_buf</code></em>);
658
646
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-get-attribute-by-oid" title="gnutls_x509_crq_get_attribute_by_oid ()">gnutls_x509_crq_get_attribute_by_oid</a>
659
(<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
647
(<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
660
648
<em class="parameter"><code>const <span class="type">char</span> *oid</code></em>,
661
649
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> indx</code></em>,
662
650
<em class="parameter"><code><span class="type">void</span> *buf</code></em>,
663
651
<em class="parameter"><code><span class="type">size_t</span> *sizeof_buf</code></em>);
664
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-export" title="gnutls_x509_crq_export ()">gnutls_x509_crq_export</a> (<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
652
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-export" title="gnutls_x509_crq_export ()">gnutls_x509_crq_export</a> (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
665
653
<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crt-fmt-t" title="enum gnutls_x509_crt_fmt_t"><span class="type">gnutls_x509_crt_fmt_t</span></a> format</code></em>,
666
654
<em class="parameter"><code><span class="type">void</span> *output_data</code></em>,
667
655
<em class="parameter"><code><span class="type">size_t</span> *output_data_size</code></em>);
668
656
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crt-set-crq" title="gnutls_x509_crt_set_crq ()">gnutls_x509_crt_set_crq</a> (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crt-t" title="gnutls_x509_crt_t"><span class="type">gnutls_x509_crt_t</span></a> crt</code></em>,
669
<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>);
657
<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>);
670
658
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crt-set-crq-extensions" title="gnutls_x509_crt_set_crq_extensions ()">gnutls_x509_crt_set_crq_extensions</a> (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crt-t" title="gnutls_x509_crt_t"><span class="type">gnutls_x509_crt_t</span></a> crt</code></em>,
671
<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>);
672
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-set-key-rsa-raw" title="gnutls_x509_crq_set_key_rsa_raw ()">gnutls_x509_crq_set_key_rsa_raw</a> (<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
659
<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>);
660
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-set-key-rsa-raw" title="gnutls_x509_crq_set_key_rsa_raw ()">gnutls_x509_crq_set_key_rsa_raw</a> (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
673
661
<em class="parameter"><code>const <span class="type">gnutls_datum_t</span> *m</code></em>,
674
662
<em class="parameter"><code>const <span class="type">gnutls_datum_t</span> *e</code></em>);
675
663
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-set-subject-alt-name" title="gnutls_x509_crq_set_subject_alt_name ()">gnutls_x509_crq_set_subject_alt_name</a>
676
(<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
664
(<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
677
665
<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-subject-alt-name-t" title="enum gnutls_x509_subject_alt_name_t"><span class="type">gnutls_x509_subject_alt_name_t</span></a> nt</code></em>,
678
666
<em class="parameter"><code>const <span class="type">void</span> *data</code></em>,
679
667
<em class="parameter"><code>unsigned <a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> data_size</code></em>,
680
668
<em class="parameter"><code>unsigned <a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> flags</code></em>);
681
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-set-key-usage" title="gnutls_x509_crq_set_key_usage ()">gnutls_x509_crq_set_key_usage</a> (<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
669
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-set-key-usage" title="gnutls_x509_crq_set_key_usage ()">gnutls_x509_crq_set_key_usage</a> (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
682
670
<em class="parameter"><code>unsigned <a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> usage</code></em>);
683
671
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-set-basic-constraints" title="gnutls_x509_crq_set_basic_constraints ()">gnutls_x509_crq_set_basic_constraints</a>
684
(<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
672
(<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
685
673
<em class="parameter"><code>unsigned <a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> ca</code></em>,
686
674
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> pathLenConstraint</code></em>);
687
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-set-key-purpose-oid" title="gnutls_x509_crq_set_key_purpose_oid ()">gnutls_x509_crq_set_key_purpose_oid</a> (<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
675
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-set-key-purpose-oid" title="gnutls_x509_crq_set_key_purpose_oid ()">gnutls_x509_crq_set_key_purpose_oid</a> (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
688
676
<em class="parameter"><code>const <span class="type">void</span> *oid</code></em>,
689
677
<em class="parameter"><code>unsigned <a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> critical</code></em>);
690
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-get-key-purpose-oid" title="gnutls_x509_crq_get_key_purpose_oid ()">gnutls_x509_crq_get_key_purpose_oid</a> (<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
678
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-get-key-purpose-oid" title="gnutls_x509_crq_get_key_purpose_oid ()">gnutls_x509_crq_get_key_purpose_oid</a> (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
691
679
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> indx</code></em>,
692
680
<em class="parameter"><code><span class="type">void</span> *oid</code></em>,
693
681
<em class="parameter"><code><span class="type">size_t</span> *sizeof_oid</code></em>,
694
682
<em class="parameter"><code>unsigned <a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> *critical</code></em>);
695
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-get-extension-data" title="gnutls_x509_crq_get_extension_data ()">gnutls_x509_crq_get_extension_data</a> (<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
683
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-get-extension-data" title="gnutls_x509_crq_get_extension_data ()">gnutls_x509_crq_get_extension_data</a> (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
696
684
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> indx</code></em>,
697
685
<em class="parameter"><code><span class="type">void</span> *data</code></em>,
698
686
<em class="parameter"><code><span class="type">size_t</span> *sizeof_data</code></em>);
699
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-get-extension-info" title="gnutls_x509_crq_get_extension_info ()">gnutls_x509_crq_get_extension_info</a> (<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
687
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-get-extension-info" title="gnutls_x509_crq_get_extension_info ()">gnutls_x509_crq_get_extension_info</a> (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
700
688
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> indx</code></em>,
701
689
<em class="parameter"><code><span class="type">void</span> *oid</code></em>,
702
690
<em class="parameter"><code><span class="type">size_t</span> *sizeof_oid</code></em>,
703
691
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> *critical</code></em>);
704
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-get-attribute-data" title="gnutls_x509_crq_get_attribute_data ()">gnutls_x509_crq_get_attribute_data</a> (<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
692
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-get-attribute-data" title="gnutls_x509_crq_get_attribute_data ()">gnutls_x509_crq_get_attribute_data</a> (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
705
693
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> indx</code></em>,
706
694
<em class="parameter"><code><span class="type">void</span> *data</code></em>,
707
695
<em class="parameter"><code><span class="type">size_t</span> *sizeof_data</code></em>);
708
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-get-attribute-info" title="gnutls_x509_crq_get_attribute_info ()">gnutls_x509_crq_get_attribute_info</a> (<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
696
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-get-attribute-info" title="gnutls_x509_crq_get_attribute_info ()">gnutls_x509_crq_get_attribute_info</a> (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
709
697
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> indx</code></em>,
710
698
<em class="parameter"><code><span class="type">void</span> *oid</code></em>,
711
699
<em class="parameter"><code><span class="type">size_t</span> *sizeof_oid</code></em>);
712
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-get-pk-algorithm" title="gnutls_x509_crq_get_pk_algorithm ()">gnutls_x509_crq_get_pk_algorithm</a> (<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
700
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-get-pk-algorithm" title="gnutls_x509_crq_get_pk_algorithm ()">gnutls_x509_crq_get_pk_algorithm</a> (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
713
701
<em class="parameter"><code>unsigned <a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> *bits</code></em>);
714
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-get-key-id" title="gnutls_x509_crq_get_key_id ()">gnutls_x509_crq_get_key_id</a> (<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
702
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-get-key-id" title="gnutls_x509_crq_get_key_id ()">gnutls_x509_crq_get_key_id</a> (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
715
703
<em class="parameter"><code>unsigned <a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> flags</code></em>,
716
704
<em class="parameter"><code>unsigned <span class="type">char</span> *output_data</code></em>,
717
705
<em class="parameter"><code><span class="type">size_t</span> *output_data_size</code></em>);
718
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-get-key-rsa-raw" title="gnutls_x509_crq_get_key_rsa_raw ()">gnutls_x509_crq_get_key_rsa_raw</a> (<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
706
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-get-key-rsa-raw" title="gnutls_x509_crq_get_key_rsa_raw ()">gnutls_x509_crq_get_key_rsa_raw</a> (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
719
707
<em class="parameter"><code><span class="type">gnutls_datum_t</span> *m</code></em>,
720
708
<em class="parameter"><code><span class="type">gnutls_datum_t</span> *e</code></em>);
721
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-get-key-usage" title="gnutls_x509_crq_get_key_usage ()">gnutls_x509_crq_get_key_usage</a> (<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
709
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-get-key-usage" title="gnutls_x509_crq_get_key_usage ()">gnutls_x509_crq_get_key_usage</a> (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
722
710
<em class="parameter"><code>unsigned <a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> *key_usage</code></em>,
723
711
<em class="parameter"><code>unsigned <a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> *critical</code></em>);
724
712
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-get-basic-constraints" title="gnutls_x509_crq_get_basic_constraints ()">gnutls_x509_crq_get_basic_constraints</a>
725
(<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
713
(<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
726
714
<em class="parameter"><code>unsigned <a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> *critical</code></em>,
727
715
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> *ca</code></em>,
728
716
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> *pathlen</code></em>);
729
717
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-get-subject-alt-name" title="gnutls_x509_crq_get_subject_alt_name ()">gnutls_x509_crq_get_subject_alt_name</a>
730
(<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
718
(<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
731
719
<em class="parameter"><code>unsigned <a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> seq</code></em>,
732
720
<em class="parameter"><code><span class="type">void</span> *ret</code></em>,
733
721
<em class="parameter"><code><span class="type">size_t</span> *ret_size</code></em>,
734
722
<em class="parameter"><code>unsigned <a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> *ret_type</code></em>,
735
723
<em class="parameter"><code>unsigned <a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> *critical</code></em>);
736
724
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-get-subject-alt-othername-oid" title="gnutls_x509_crq_get_subject_alt_othername_oid ()">gnutls_x509_crq_get_subject_alt_othername_oid</a>
737
(<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
725
(<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
738
726
<em class="parameter"><code>unsigned <a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> seq</code></em>,
739
727
<em class="parameter"><code><span class="type">void</span> *ret</code></em>,
740
728
<em class="parameter"><code><span class="type">size_t</span> *ret_size</code></em>);
741
729
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-x509.html#gnutls-x509-crq-get-extension-by-oid" title="gnutls_x509_crq_get_extension_by_oid ()">gnutls_x509_crq_get_extension_by_oid</a>
742
(<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
730
(<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
743
731
<em class="parameter"><code>const <span class="type">char</span> *oid</code></em>,
744
732
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> indx</code></em>,
745
733
<em class="parameter"><code><span class="type">void</span> *buf</code></em>,
1814
1756
<td><p><span class="term"><em class="parameter"><code>cert</code></em> :</span></p></td>
1815
<td>should contain a <a class="link" href="gnutls-gnutls.html#gnutls-x509-crt-t" title="gnutls_x509_crt_t"><span class="type">gnutls_x509_crt_t</span></a> structure
1757
<td>should contain a <a class="link" href="gnutls-gnutls.html#gnutls-x509-crt-t" title="gnutls_x509_crt_t"><span class="type">gnutls_x509_crt_t</span></a> structure</td>
1819
1760
<td><p><span class="term"><em class="parameter"><code>ret</code></em> :</span></p></td>
1820
<td>The place where the identifier will be copied
1761
<td>The place where the identifier will be copied</td>
1824
1764
<td><p><span class="term"><em class="parameter"><code>ret_size</code></em> :</span></p></td>
1825
<td>Holds the size of the result field.
1765
<td>Holds the size of the result field.</td>
1829
1768
<td><p><span class="term"><em class="parameter"><code>critical</code></em> :</span></p></td>
1830
<td>will be non zero if the extension is marked as critical (may be null)
1834
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1835
<td> On success, <a class="link" href="gnutls-gnutls.html#GNUTLS-E-SUCCESS:CAPS" title="GNUTLS_E_SUCCESS"><code class="literal">GNUTLS_E_SUCCESS</code></a> is returned, otherwise a
1836
negative error value.
1843
<div class="refsect2" title="GNUTLS_CRL_REASON_UNUSED">
1769
<td>will be non zero if the extension is marked as critical (may be null)</td>
1772
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1773
<td>On success, <a class="link" href="gnutls-gnutls.html#GNUTLS-E-SUCCESS:CAPS" title="GNUTLS_E_SUCCESS"><code class="literal">GNUTLS_E_SUCCESS</code></a> is returned, otherwise a
1774
negative error value.</td>
1780
<div class="refsect2">
1781
<a name="gnutls-x509-crt-get-subject-unique-id"></a><h3>gnutls_x509_crt_get_subject_unique_id ()</h3>
1782
<pre class="programlisting"><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> gnutls_x509_crt_get_subject_unique_id
1783
(<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crt-t" title="gnutls_x509_crt_t"><span class="type">gnutls_x509_crt_t</span></a> crt</code></em>,
1784
<em class="parameter"><code><span class="type">char</span> *buf</code></em>,
1785
<em class="parameter"><code><span class="type">size_t</span> *sizeof_buf</code></em>);</pre>
1787
This function will extract the subjectUniqueID value (if present) for
1788
the given certificate.
1791
If the user allocated memory buffer is not large enough to hold the
1792
full subjectUniqueID, then a GNUTLS_E_SHORT_MEMORY_BUFFER error will be
1793
returned, and sizeof_buf will be set to the actual length.
1795
<div class="variablelist"><table border="0">
1796
<col align="left" valign="top">
1799
<td><p><span class="term"><em class="parameter"><code>crt</code></em> :</span></p></td>
1800
<td>Holds the certificate</td>
1803
<td><p><span class="term"><em class="parameter"><code>buf</code></em> :</span></p></td>
1804
<td>user allocated memory buffer, will hold the unique id</td>
1807
<td><p><span class="term"><em class="parameter"><code>sizeof_buf</code></em> :</span></p></td>
1808
<td>size of user allocated memory buffer (on input), will hold
1809
actual size of the unique ID on return.</td>
1812
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1814
<a class="link" href="gnutls-gnutls.html#GNUTLS-E-SUCCESS:CAPS" title="GNUTLS_E_SUCCESS"><code class="literal">GNUTLS_E_SUCCESS</code></a> on success, otherwise an error.</td>
1820
<div class="refsect2">
1821
<a name="gnutls-x509-crt-get-issuer-unique-id"></a><h3>gnutls_x509_crt_get_issuer_unique_id ()</h3>
1822
<pre class="programlisting"><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> gnutls_x509_crt_get_issuer_unique_id
1823
(<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crt-t" title="gnutls_x509_crt_t"><span class="type">gnutls_x509_crt_t</span></a> crt</code></em>,
1824
<em class="parameter"><code><span class="type">char</span> *buf</code></em>,
1825
<em class="parameter"><code><span class="type">size_t</span> *sizeof_buf</code></em>);</pre>
1827
This function will extract the issuerUniqueID value (if present) for
1828
the given certificate.
1831
If the user allocated memory buffer is not large enough to hold the
1832
full subjectUniqueID, then a GNUTLS_E_SHORT_MEMORY_BUFFER error will be
1833
returned, and sizeof_buf will be set to the actual length.
1835
<div class="variablelist"><table border="0">
1836
<col align="left" valign="top">
1839
<td><p><span class="term"><em class="parameter"><code>crt</code></em> :</span></p></td>
1840
<td>Holds the certificate</td>
1843
<td><p><span class="term"><em class="parameter"><code>buf</code></em> :</span></p></td>
1844
<td>user allocated memory buffer, will hold the unique id</td>
1847
<td><p><span class="term"><em class="parameter"><code>sizeof_buf</code></em> :</span></p></td>
1848
<td>size of user allocated memory buffer (on input), will hold
1849
actual size of the unique ID on return.</td>
1852
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1854
<a class="link" href="gnutls-gnutls.html#GNUTLS-E-SUCCESS:CAPS" title="GNUTLS_E_SUCCESS"><code class="literal">GNUTLS_E_SUCCESS</code></a> on success, otherwise an error.</td>
1860
<div class="refsect2">
1844
1861
<a name="GNUTLS-CRL-REASON-UNUSED:CAPS"></a><h3>GNUTLS_CRL_REASON_UNUSED</h3>
1845
1862
<pre class="programlisting">#define GNUTLS_CRL_REASON_UNUSED 128
5052
4820
<td><p><span class="term"><em class="parameter"><code>crl</code></em> :</span></p></td>
5053
<td>should contain a gnutls_x509_crl_t structure
4821
<td>should contain a gnutls_x509_crl_t structure</td>
5057
4824
<td><p><span class="term"><em class="parameter"><code>version</code></em> :</span></p></td>
5058
<td>holds the version number. For CRLv1 crls must be 1.
5062
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
5063
<td> On success, <a class="link" href="gnutls-gnutls.html#GNUTLS-E-SUCCESS:CAPS" title="GNUTLS_E_SUCCESS"><code class="literal">GNUTLS_E_SUCCESS</code></a> is returned, otherwise a
5064
negative error value.
5071
<div class="refsect2" title="gnutls_x509_crl_sign ()">
5072
<a name="gnutls-x509-crl-sign"></a><h3>gnutls_x509_crl_sign ()</h3>
5073
<pre class="programlisting"><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> gnutls_x509_crl_sign (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crl-t" title="gnutls_x509_crl_t"><span class="type">gnutls_x509_crl_t</span></a> crl</code></em>,
5074
<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crt-t" title="gnutls_x509_crt_t"><span class="type">gnutls_x509_crt_t</span></a> issuer</code></em>,
5075
<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-privkey-t" title="gnutls_x509_privkey_t"><span class="type">gnutls_x509_privkey_t</span></a> issuer_key</code></em>);</pre>
5077
This function is the same a <a class="link" href="gnutls-x509.html#gnutls-x509-crl-sign2" title="gnutls_x509_crl_sign2 ()"><code class="function">gnutls_x509_crl_sign2()</code></a> with no flags, and
5078
SHA1 as the hash algorithm.
5080
<div class="variablelist"><table border="0">
5081
<col align="left" valign="top">
5084
<td><p><span class="term"><em class="parameter"><code>crl</code></em> :</span></p></td>
5085
<td>should contain a gnutls_x509_crl_t structure
5089
<td><p><span class="term"><em class="parameter"><code>issuer</code></em> :</span></p></td>
5090
<td>is the certificate of the certificate issuer
5094
<td><p><span class="term"><em class="parameter"><code>issuer_key</code></em> :</span></p></td>
5095
<td>holds the issuer's private key
5099
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
5100
<td> On success, <a class="link" href="gnutls-gnutls.html#GNUTLS-E-SUCCESS:CAPS" title="GNUTLS_E_SUCCESS"><code class="literal">GNUTLS_E_SUCCESS</code></a> is returned, otherwise a
5101
negative error value.
5108
<div class="refsect2" title="gnutls_x509_crl_sign2 ()">
5109
<a name="gnutls-x509-crl-sign2"></a><h3>gnutls_x509_crl_sign2 ()</h3>
5110
<pre class="programlisting"><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> gnutls_x509_crl_sign2 (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crl-t" title="gnutls_x509_crl_t"><span class="type">gnutls_x509_crl_t</span></a> crl</code></em>,
5111
<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crt-t" title="gnutls_x509_crt_t"><span class="type">gnutls_x509_crt_t</span></a> issuer</code></em>,
5112
<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-privkey-t" title="gnutls_x509_privkey_t"><span class="type">gnutls_x509_privkey_t</span></a> issuer_key</code></em>,
5113
<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-digest-algorithm-t" title="enum gnutls_digest_algorithm_t"><span class="type">gnutls_digest_algorithm_t</span></a> dig</code></em>,
5114
<em class="parameter"><code>unsigned <a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> flags</code></em>);</pre>
5116
This function will sign the CRL with the issuer's private key, and
5117
will copy the issuer's information into the CRL.
5120
This must be the last step in a certificate CRL since all
5121
the previously set parameters are now signed.
5123
<div class="variablelist"><table border="0">
5124
<col align="left" valign="top">
5127
<td><p><span class="term"><em class="parameter"><code>crl</code></em> :</span></p></td>
5128
<td>should contain a gnutls_x509_crl_t structure
5132
<td><p><span class="term"><em class="parameter"><code>issuer</code></em> :</span></p></td>
5133
<td>is the certificate of the certificate issuer
5137
<td><p><span class="term"><em class="parameter"><code>issuer_key</code></em> :</span></p></td>
5138
<td>holds the issuer's private key
5142
<td><p><span class="term"><em class="parameter"><code>dig</code></em> :</span></p></td>
5143
<td>The message digest to use. GNUTLS_DIG_SHA1 is the safe choice unless you know what you're doing.
5147
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
5152
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
5153
<td> On success, <a class="link" href="gnutls-gnutls.html#GNUTLS-E-SUCCESS:CAPS" title="GNUTLS_E_SUCCESS"><code class="literal">GNUTLS_E_SUCCESS</code></a> is returned, otherwise a
5154
negative error value.
5161
<div class="refsect2" title="gnutls_x509_crl_set_this_update ()">
4825
<td>holds the version number. For CRLv1 crls must be 1.</td>
4828
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
4829
<td>On success, <a class="link" href="gnutls-gnutls.html#GNUTLS-E-SUCCESS:CAPS" title="GNUTLS_E_SUCCESS"><code class="literal">GNUTLS_E_SUCCESS</code></a> is returned, otherwise a
4830
negative error value.</td>
4836
<div class="refsect2">
5162
4837
<a name="gnutls-x509-crl-set-this-update"></a><h3>gnutls_x509_crl_set_this_update ()</h3>
5163
4838
<pre class="programlisting"><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> gnutls_x509_crl_set_this_update (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crl-t" title="gnutls_x509_crl_t"><span class="type">gnutls_x509_crl_t</span></a> crl</code></em>,
5164
4839
<em class="parameter"><code><span class="type">time_t</span> act_time</code></em>);</pre>
6880
6428
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
6881
<td>The structure to store the parsed key
6885
<td><p><span class="term"><em class="parameter"><code>m</code></em> :</span></p></td>
6886
<td>holds the modulus
6890
<td><p><span class="term"><em class="parameter"><code>e</code></em> :</span></p></td>
6891
<td>holds the public exponent
6895
<td><p><span class="term"><em class="parameter"><code>d</code></em> :</span></p></td>
6896
<td>holds the private exponent
6900
<td><p><span class="term"><em class="parameter"><code>p</code></em> :</span></p></td>
6901
<td>holds the first prime (p)
6905
<td><p><span class="term"><em class="parameter"><code>q</code></em> :</span></p></td>
6906
<td>holds the second prime (q)
6910
<td><p><span class="term"><em class="parameter"><code>u</code></em> :</span></p></td>
6911
<td>holds the coefficient
6915
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
6916
<td> On success, <a class="link" href="gnutls-gnutls.html#GNUTLS-E-SUCCESS:CAPS" title="GNUTLS_E_SUCCESS"><code class="literal">GNUTLS_E_SUCCESS</code></a> is returned, otherwise a
6917
negative error value.
6924
<div class="refsect2" title="gnutls_x509_privkey_fix ()">
6429
<td>The structure to store the parsed key</td>
6432
<td><p><span class="term"><em class="parameter"><code>m</code></em> :</span></p></td>
6433
<td>holds the modulus</td>
6436
<td><p><span class="term"><em class="parameter"><code>e</code></em> :</span></p></td>
6437
<td>holds the public exponent</td>
6440
<td><p><span class="term"><em class="parameter"><code>d</code></em> :</span></p></td>
6441
<td>holds the private exponent</td>
6444
<td><p><span class="term"><em class="parameter"><code>p</code></em> :</span></p></td>
6445
<td>holds the first prime (p)</td>
6448
<td><p><span class="term"><em class="parameter"><code>q</code></em> :</span></p></td>
6449
<td>holds the second prime (q)</td>
6452
<td><p><span class="term"><em class="parameter"><code>u</code></em> :</span></p></td>
6453
<td>holds the coefficient</td>
6456
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
6457
<td>On success, <a class="link" href="gnutls-gnutls.html#GNUTLS-E-SUCCESS:CAPS" title="GNUTLS_E_SUCCESS"><code class="literal">GNUTLS_E_SUCCESS</code></a> is returned, otherwise a
6458
negative error value.</td>
6464
<div class="refsect2">
6465
<a name="gnutls-x509-privkey-import-rsa-raw2"></a><h3>gnutls_x509_privkey_import_rsa_raw2 ()</h3>
6466
<pre class="programlisting"><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> gnutls_x509_privkey_import_rsa_raw2 (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-privkey-t" title="gnutls_x509_privkey_t"><span class="type">gnutls_x509_privkey_t</span></a> key</code></em>,
6467
<em class="parameter"><code>const <span class="type">gnutls_datum_t</span> *m</code></em>,
6468
<em class="parameter"><code>const <span class="type">gnutls_datum_t</span> *e</code></em>,
6469
<em class="parameter"><code>const <span class="type">gnutls_datum_t</span> *d</code></em>,
6470
<em class="parameter"><code>const <span class="type">gnutls_datum_t</span> *p</code></em>,
6471
<em class="parameter"><code>const <span class="type">gnutls_datum_t</span> *q</code></em>,
6472
<em class="parameter"><code>const <span class="type">gnutls_datum_t</span> *u</code></em>,
6473
<em class="parameter"><code>const <span class="type">gnutls_datum_t</span> *e1</code></em>,
6474
<em class="parameter"><code>const <span class="type">gnutls_datum_t</span> *e2</code></em>);</pre>
6476
This function will convert the given RSA raw parameters to the
6477
native <a class="link" href="gnutls-gnutls.html#gnutls-x509-privkey-t" title="gnutls_x509_privkey_t"><span class="type">gnutls_x509_privkey_t</span></a> format. The output will be stored in
6478
<em class="parameter"><code>key</code></em>.
6480
<div class="variablelist"><table border="0">
6481
<col align="left" valign="top">
6484
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
6485
<td>The structure to store the parsed key</td>
6488
<td><p><span class="term"><em class="parameter"><code>m</code></em> :</span></p></td>
6489
<td>holds the modulus</td>
6492
<td><p><span class="term"><em class="parameter"><code>e</code></em> :</span></p></td>
6493
<td>holds the public exponent</td>
6496
<td><p><span class="term"><em class="parameter"><code>d</code></em> :</span></p></td>
6497
<td>holds the private exponent</td>
6500
<td><p><span class="term"><em class="parameter"><code>p</code></em> :</span></p></td>
6501
<td>holds the first prime (p)</td>
6504
<td><p><span class="term"><em class="parameter"><code>q</code></em> :</span></p></td>
6505
<td>holds the second prime (q)</td>
6508
<td><p><span class="term"><em class="parameter"><code>u</code></em> :</span></p></td>
6509
<td>holds the coefficient</td>
6512
<td><p><span class="term"><em class="parameter"><code>e1</code></em> :</span></p></td>
6513
<td>holds e1 = d mod (p-1)</td>
6516
<td><p><span class="term"><em class="parameter"><code>e2</code></em> :</span></p></td>
6517
<td>holds e2 = d mod (q-1)</td>
6520
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
6521
<td>On success, <a class="link" href="gnutls-gnutls.html#GNUTLS-E-SUCCESS:CAPS" title="GNUTLS_E_SUCCESS"><code class="literal">GNUTLS_E_SUCCESS</code></a> is returned, otherwise a
6522
negative error value.</td>
6528
<div class="refsect2">
6925
6529
<a name="gnutls-x509-privkey-fix"></a><h3>gnutls_x509_privkey_fix ()</h3>
6926
6530
<pre class="programlisting"><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> gnutls_x509_privkey_fix (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-privkey-t" title="gnutls_x509_privkey_t"><span class="type">gnutls_x509_privkey_t</span></a> key</code></em>);</pre>
7267
6841
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
6842
<td>Holds the key</td>
7272
6845
<td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
7273
<td>the format of output params. One of PEM or DER.
6846
<td>the format of output params. One of PEM or DER.</td>
7277
6849
<td><p><span class="term"><em class="parameter"><code>password</code></em> :</span></p></td>
7278
<td>the password that will be used to encrypt the key.
6850
<td>the password that will be used to encrypt the key.</td>
7282
6853
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
7283
<td>an ORed sequence of gnutls_pkcs_encrypt_flags_t
6854
<td>an ORed sequence of gnutls_pkcs_encrypt_flags_t</td>
7287
6857
<td><p><span class="term"><em class="parameter"><code>output_data</code></em> :</span></p></td>
7288
<td>will contain a private key PEM or DER encoded
6858
<td>will contain a private key PEM or DER encoded</td>
7292
6861
<td><p><span class="term"><em class="parameter"><code>output_data_size</code></em> :</span></p></td>
7293
6862
<td>holds the size of output_data (and will be
7294
replaced by the actual size of parameters)
7298
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
7299
<td> In case of failure a negative value will be
7300
returned, and 0 on success.
7307
<div class="refsect2" title="gnutls_x509_privkey_export_rsa_raw ()">
6863
replaced by the actual size of parameters)</td>
6866
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
6867
<td>In case of failure a negative value will be
6868
returned, and 0 on success.</td>
6874
<div class="refsect2">
6875
<a name="gnutls-x509-privkey-export-rsa-raw2"></a><h3>gnutls_x509_privkey_export_rsa_raw2 ()</h3>
6876
<pre class="programlisting"><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> gnutls_x509_privkey_export_rsa_raw2 (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-privkey-t" title="gnutls_x509_privkey_t"><span class="type">gnutls_x509_privkey_t</span></a> key</code></em>,
6877
<em class="parameter"><code><span class="type">gnutls_datum_t</span> *m</code></em>,
6878
<em class="parameter"><code><span class="type">gnutls_datum_t</span> *e</code></em>,
6879
<em class="parameter"><code><span class="type">gnutls_datum_t</span> *d</code></em>,
6880
<em class="parameter"><code><span class="type">gnutls_datum_t</span> *p</code></em>,
6881
<em class="parameter"><code><span class="type">gnutls_datum_t</span> *q</code></em>,
6882
<em class="parameter"><code><span class="type">gnutls_datum_t</span> *u</code></em>,
6883
<em class="parameter"><code><span class="type">gnutls_datum_t</span> *e1</code></em>,
6884
<em class="parameter"><code><span class="type">gnutls_datum_t</span> *e2</code></em>);</pre>
6886
This function will export the RSA private key's parameters found
6887
in the given structure. The new parameters will be allocated using
6888
<a class="link" href="gnutls-gnutls.html#gnutls-malloc" title="gnutls_malloc"><code class="function">gnutls_malloc()</code></a> and will be stored in the appropriate datum.
6890
<div class="variablelist"><table border="0">
6891
<col align="left" valign="top">
6894
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
6895
<td>a structure that holds the rsa parameters</td>
6898
<td><p><span class="term"><em class="parameter"><code>m</code></em> :</span></p></td>
6899
<td>will hold the modulus</td>
6902
<td><p><span class="term"><em class="parameter"><code>e</code></em> :</span></p></td>
6903
<td>will hold the public exponent</td>
6906
<td><p><span class="term"><em class="parameter"><code>d</code></em> :</span></p></td>
6907
<td>will hold the private exponent</td>
6910
<td><p><span class="term"><em class="parameter"><code>p</code></em> :</span></p></td>
6911
<td>will hold the first prime (p)</td>
6914
<td><p><span class="term"><em class="parameter"><code>q</code></em> :</span></p></td>
6915
<td>will hold the second prime (q)</td>
6918
<td><p><span class="term"><em class="parameter"><code>u</code></em> :</span></p></td>
6919
<td>will hold the coefficient</td>
6922
<td><p><span class="term"><em class="parameter"><code>e1</code></em> :</span></p></td>
6923
<td>will hold e1 = d mod (p-1)</td>
6926
<td><p><span class="term"><em class="parameter"><code>e2</code></em> :</span></p></td>
6927
<td>will hold e2 = d mod (q-1)</td>
6930
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
6931
<td>On success, <a class="link" href="gnutls-gnutls.html#GNUTLS-E-SUCCESS:CAPS" title="GNUTLS_E_SUCCESS"><code class="literal">GNUTLS_E_SUCCESS</code></a> is returned, otherwise a
6932
negative error value.</td>
6938
<div class="refsect2">
7308
6939
<a name="gnutls-x509-privkey-export-rsa-raw"></a><h3>gnutls_x509_privkey_export_rsa_raw ()</h3>
7309
6940
<pre class="programlisting"><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> gnutls_x509_privkey_export_rsa_raw (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-privkey-t" title="gnutls_x509_privkey_t"><span class="type">gnutls_x509_privkey_t</span></a> key</code></em>,
7310
6941
<em class="parameter"><code><span class="type">gnutls_datum_t</span> *m</code></em>,
7325
6956
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
7326
<td>a structure that holds the rsa parameters
6957
<td>a structure that holds the rsa parameters</td>
7330
6960
<td><p><span class="term"><em class="parameter"><code>m</code></em> :</span></p></td>
7331
<td>will hold the modulus
6961
<td>will hold the modulus</td>
7335
6964
<td><p><span class="term"><em class="parameter"><code>e</code></em> :</span></p></td>
7336
<td>will hold the public exponent
6965
<td>will hold the public exponent</td>
7340
6968
<td><p><span class="term"><em class="parameter"><code>d</code></em> :</span></p></td>
7341
<td>will hold the private exponent
6969
<td>will hold the private exponent</td>
7345
6972
<td><p><span class="term"><em class="parameter"><code>p</code></em> :</span></p></td>
7346
<td>will hold the first prime (p)
6973
<td>will hold the first prime (p)</td>
7350
6976
<td><p><span class="term"><em class="parameter"><code>q</code></em> :</span></p></td>
7351
<td>will hold the second prime (q)
6977
<td>will hold the second prime (q)</td>
7355
6980
<td><p><span class="term"><em class="parameter"><code>u</code></em> :</span></p></td>
7356
<td>will hold the coefficient
7360
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
7361
<td> On success, <a class="link" href="gnutls-gnutls.html#GNUTLS-E-SUCCESS:CAPS" title="GNUTLS_E_SUCCESS"><code class="literal">GNUTLS_E_SUCCESS</code></a> is returned, otherwise a
7362
negative error value.
7369
<div class="refsect2" title="gnutls_x509_privkey_sign_data ()">
7370
<a name="gnutls-x509-privkey-sign-data"></a><h3>gnutls_x509_privkey_sign_data ()</h3>
7371
<pre class="programlisting"><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> gnutls_x509_privkey_sign_data (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-privkey-t" title="gnutls_x509_privkey_t"><span class="type">gnutls_x509_privkey_t</span></a> key</code></em>,
7372
<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-digest-algorithm-t" title="enum gnutls_digest_algorithm_t"><span class="type">gnutls_digest_algorithm_t</span></a> digest</code></em>,
7373
<em class="parameter"><code>unsigned <a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> flags</code></em>,
7374
<em class="parameter"><code>const <span class="type">gnutls_datum_t</span> *data</code></em>,
7375
<em class="parameter"><code><span class="type">void</span> *signature</code></em>,
7376
<em class="parameter"><code><span class="type">size_t</span> *signature_size</code></em>);</pre>
7378
This function will sign the given data using a signature algorithm
7379
supported by the private key. Signature algorithms are always used
7380
together with a hash functions. Different hash functions may be
7381
used for the RSA algorithm, but only SHA-1 for the DSA keys.
7384
If the buffer provided is not long enough to hold the output, then
7385
*<em class="parameter"><code>signature_size</code></em> is updated and <a class="link" href="gnutls-gnutls.html#GNUTLS-E-SHORT-MEMORY-BUFFER:CAPS" title="GNUTLS_E_SHORT_MEMORY_BUFFER"><code class="literal">GNUTLS_E_SHORT_MEMORY_BUFFER</code></a> will
7388
<div class="variablelist"><table border="0">
7389
<col align="left" valign="top">
7392
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
7397
<td><p><span class="term"><em class="parameter"><code>digest</code></em> :</span></p></td>
7398
<td>should be MD5 or SHAx. May be ignored.
7402
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
7403
<td>should be 0 for now
7407
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
7408
<td>holds the data to be signed
7412
<td><p><span class="term"><em class="parameter"><code>signature</code></em> :</span></p></td>
7413
<td>will contain the signature
7417
<td><p><span class="term"><em class="parameter"><code>signature_size</code></em> :</span></p></td>
7418
<td>holds the size of signature (and will be replaced
7423
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
7424
<td> On success, <a class="link" href="gnutls-gnutls.html#GNUTLS-E-SUCCESS:CAPS" title="GNUTLS_E_SUCCESS"><code class="literal">GNUTLS_E_SUCCESS</code></a> is returned, otherwise a
7425
negative error value.
7432
<div class="refsect2" title="gnutls_x509_privkey_verify_data ()">
7433
<a name="gnutls-x509-privkey-verify-data"></a><h3>gnutls_x509_privkey_verify_data ()</h3>
7434
<pre class="programlisting"><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> gnutls_x509_privkey_verify_data (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-privkey-t" title="gnutls_x509_privkey_t"><span class="type">gnutls_x509_privkey_t</span></a> key</code></em>,
7435
<em class="parameter"><code>unsigned <a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> flags</code></em>,
7436
<em class="parameter"><code>const <span class="type">gnutls_datum_t</span> *data</code></em>,
7437
<em class="parameter"><code>const <span class="type">gnutls_datum_t</span> *signature</code></em>);</pre>
7439
This function will verify the given signed data, using the
7440
parameters in the private key.
7442
<div class="variablelist"><table border="0">
7443
<col align="left" valign="top">
7446
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
7451
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
7452
<td>should be 0 for now
7456
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
7457
<td>holds the data to be signed
7461
<td><p><span class="term"><em class="parameter"><code>signature</code></em> :</span></p></td>
7462
<td>contains the signature
7466
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
7467
<td> In case of a verification failure 0 is returned, and 1 on
7475
<div class="refsect2" title="gnutls_x509_crt_verify_data ()">
7476
<a name="gnutls-x509-crt-verify-data"></a><h3>gnutls_x509_crt_verify_data ()</h3>
7477
<pre class="programlisting"><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> gnutls_x509_crt_verify_data (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crt-t" title="gnutls_x509_crt_t"><span class="type">gnutls_x509_crt_t</span></a> crt</code></em>,
7478
<em class="parameter"><code>unsigned <a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> flags</code></em>,
7479
<em class="parameter"><code>const <span class="type">gnutls_datum_t</span> *data</code></em>,
7480
<em class="parameter"><code>const <span class="type">gnutls_datum_t</span> *signature</code></em>);</pre>
7482
This function will verify the given signed data, using the
7483
parameters from the certificate.
7485
<div class="variablelist"><table border="0">
7486
<col align="left" valign="top">
7489
<td><p><span class="term"><em class="parameter"><code>crt</code></em> :</span></p></td>
7490
<td>Holds the certificate
7494
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
7495
<td>should be 0 for now
7499
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
7500
<td>holds the data to be signed
7504
<td><p><span class="term"><em class="parameter"><code>signature</code></em> :</span></p></td>
7505
<td>contains the signature
7509
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
7510
<td> In case of a verification failure 0 is returned, and 1 on
7518
<div class="refsect2" title="gnutls_x509_crt_verify_hash ()">
7519
<a name="gnutls-x509-crt-verify-hash"></a><h3>gnutls_x509_crt_verify_hash ()</h3>
7520
<pre class="programlisting"><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> gnutls_x509_crt_verify_hash (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crt-t" title="gnutls_x509_crt_t"><span class="type">gnutls_x509_crt_t</span></a> crt</code></em>,
7521
<em class="parameter"><code>unsigned <a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> flags</code></em>,
7522
<em class="parameter"><code>const <span class="type">gnutls_datum_t</span> *hash</code></em>,
7523
<em class="parameter"><code>const <span class="type">gnutls_datum_t</span> *signature</code></em>);</pre>
7525
This function will verify the given signed digest, using the
7526
parameters from the certificate.
7528
<div class="variablelist"><table border="0">
7529
<col align="left" valign="top">
7532
<td><p><span class="term"><em class="parameter"><code>crt</code></em> :</span></p></td>
7533
<td>Holds the certificate
7537
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
7538
<td>should be 0 for now
7542
<td><p><span class="term"><em class="parameter"><code>hash</code></em> :</span></p></td>
7543
<td>holds the hash digest to be verified
7547
<td><p><span class="term"><em class="parameter"><code>signature</code></em> :</span></p></td>
7548
<td>contains the signature
7552
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
7553
<td> In case of a verification failure 0 is returned, and 1 on
7561
<div class="refsect2" title="gnutls_x509_crt_get_verify_algorithm ()">
7562
<a name="gnutls-x509-crt-get-verify-algorithm"></a><h3>gnutls_x509_crt_get_verify_algorithm ()</h3>
7563
<pre class="programlisting"><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> gnutls_x509_crt_get_verify_algorithm
7564
(<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crt-t" title="gnutls_x509_crt_t"><span class="type">gnutls_x509_crt_t</span></a> crt</code></em>,
7565
<em class="parameter"><code>const <span class="type">gnutls_datum_t</span> *signature</code></em>,
7566
<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-digest-algorithm-t" title="enum gnutls_digest_algorithm_t"><span class="type">gnutls_digest_algorithm_t</span></a> *hash</code></em>);</pre>
7568
This function will read the certifcate and the signed data to
7569
determine the hash algorithm used to generate the signature.
7571
<div class="variablelist"><table border="0">
7572
<col align="left" valign="top">
7575
<td><p><span class="term"><em class="parameter"><code>crt</code></em> :</span></p></td>
7576
<td>Holds the certificate
7580
<td><p><span class="term"><em class="parameter"><code>signature</code></em> :</span></p></td>
7581
<td>contains the signature
7585
<td><p><span class="term"><em class="parameter"><code>hash</code></em> :</span></p></td>
7586
<td>The result of the call with the hash algorithm used for signature
7590
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
7591
<td> the 0 if the hash algorithm is found. A negative value is
7598
<p class="since">Since 2.8.0</p>
7601
<div class="refsect2" title="gnutls_x509_privkey_sign_hash ()">
7602
<a name="gnutls-x509-privkey-sign-hash"></a><h3>gnutls_x509_privkey_sign_hash ()</h3>
7603
<pre class="programlisting"><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> gnutls_x509_privkey_sign_hash (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-privkey-t" title="gnutls_x509_privkey_t"><span class="type">gnutls_x509_privkey_t</span></a> key</code></em>,
7604
<em class="parameter"><code>const <span class="type">gnutls_datum_t</span> *hash</code></em>,
7605
<em class="parameter"><code><span class="type">gnutls_datum_t</span> *signature</code></em>);</pre>
7607
This function will sign the given hash using the private key. Do not
7608
use this function directly unless you know what it is. Typical signing
7609
requires the data to be hashed and stored in special formats
7610
(e.g. BER Digest-Info for RSA).
7612
<div class="variablelist"><table border="0">
7613
<col align="left" valign="top">
7616
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
7621
<td><p><span class="term"><em class="parameter"><code>hash</code></em> :</span></p></td>
7622
<td>holds the data to be signed
7626
<td><p><span class="term"><em class="parameter"><code>signature</code></em> :</span></p></td>
7627
<td>will contain newly allocated signature
7631
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
7632
<td> On success, <a class="link" href="gnutls-gnutls.html#GNUTLS-E-SUCCESS:CAPS" title="GNUTLS_E_SUCCESS"><code class="literal">GNUTLS_E_SUCCESS</code></a> is returned, otherwise a
7633
negative error value.
7640
<div class="refsect2" title="struct gnutls_x509_crq_int">
7641
<a name="gnutls-x509-crq-int"></a><h3>struct gnutls_x509_crq_int</h3>
7642
<pre class="programlisting">struct gnutls_x509_crq_int;</pre>
7647
<div class="refsect2" title="gnutls_x509_crq_t">
7648
<a name="gnutls-x509-crq-t"></a><h3>gnutls_x509_crq_t</h3>
7649
<pre class="programlisting"> typedef struct gnutls_x509_crq_int *gnutls_x509_crq_t;
7655
<div class="refsect2" title="gnutls_x509_crq_print ()">
6981
<td>will hold the coefficient</td>
6984
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
6985
<td>On success, <a class="link" href="gnutls-gnutls.html#GNUTLS-E-SUCCESS:CAPS" title="GNUTLS_E_SUCCESS"><code class="literal">GNUTLS_E_SUCCESS</code></a> is returned, otherwise a
6986
negative error value.</td>
6992
<div class="refsect2">
7656
6993
<a name="gnutls-x509-crq-print"></a><h3>gnutls_x509_crq_print ()</h3>
7657
<pre class="programlisting"><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> gnutls_x509_crq_print (<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
6994
<pre class="programlisting"><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> gnutls_x509_crq_print (<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
7658
6995
<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-certificate-print-formats-t" title="enum gnutls_certificate_print_formats_t"><span class="type">gnutls_certificate_print_formats_t</span></a> format</code></em>,
7659
6996
<em class="parameter"><code><span class="type">gnutls_datum_t</span> *out</code></em>);</pre>
8057
7362
<td><p><span class="term"><em class="parameter"><code>crq</code></em> :</span></p></td>
8058
<td>should contain a <a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> structure
8062
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
8063
<td>holds a private key
8067
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
8068
<td> On success, <a class="link" href="gnutls-gnutls.html#GNUTLS-E-SUCCESS:CAPS" title="GNUTLS_E_SUCCESS"><code class="literal">GNUTLS_E_SUCCESS</code></a> is returned, otherwise a
8069
negative error value.
8076
<div class="refsect2" title="gnutls_x509_crq_sign2 ()">
8077
<a name="gnutls-x509-crq-sign2"></a><h3>gnutls_x509_crq_sign2 ()</h3>
8078
<pre class="programlisting"><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> gnutls_x509_crq_sign2 (<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
8079
<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-privkey-t" title="gnutls_x509_privkey_t"><span class="type">gnutls_x509_privkey_t</span></a> key</code></em>,
8080
<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-digest-algorithm-t" title="enum gnutls_digest_algorithm_t"><span class="type">gnutls_digest_algorithm_t</span></a> dig</code></em>,
8081
<em class="parameter"><code>unsigned <a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> flags</code></em>);</pre>
8083
This function will sign the certificate request with a private key.
8084
This must be the same key as the one used in
8085
<a class="link" href="gnutls-x509.html#gnutls-x509-crt-set-key" title="gnutls_x509_crt_set_key ()"><code class="function">gnutls_x509_crt_set_key()</code></a> since a certificate request is self
8089
This must be the last step in a certificate request generation
8090
since all the previously set parameters are now signed.
8092
<div class="variablelist"><table border="0">
8093
<col align="left" valign="top">
8096
<td><p><span class="term"><em class="parameter"><code>crq</code></em> :</span></p></td>
8097
<td>should contain a <a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> structure
8101
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
8102
<td>holds a private key
8106
<td><p><span class="term"><em class="parameter"><code>dig</code></em> :</span></p></td>
8107
<td>The message digest to use, i.e., <a class="link" href="gnutls-gnutls.html#GNUTLS-DIG-SHA1:CAPS"><code class="literal">GNUTLS_DIG_SHA1</code></a>
8111
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
8116
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
8117
<td> <a class="link" href="gnutls-gnutls.html#GNUTLS-E-SUCCESS:CAPS" title="GNUTLS_E_SUCCESS"><code class="literal">GNUTLS_E_SUCCESS</code></a> on success, otherwise an error.
8118
<a class="link" href="gnutls-gnutls.html#GNUTLS-E-ASN1-VALUE-NOT-FOUND:CAPS" title="GNUTLS_E_ASN1_VALUE_NOT_FOUND"><code class="literal">GNUTLS_E_ASN1_VALUE_NOT_FOUND</code></a> is returned if you didn't set all
8119
information in the certificate request (e.g., the version using
8120
<a class="link" href="gnutls-x509.html#gnutls-x509-crq-set-version" title="gnutls_x509_crq_set_version ()"><code class="function">gnutls_x509_crq_set_version()</code></a>).
8128
<div class="refsect2" title="gnutls_x509_crq_sign ()">
8129
<a name="gnutls-x509-crq-sign"></a><h3>gnutls_x509_crq_sign ()</h3>
8130
<pre class="programlisting"><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> gnutls_x509_crq_sign (<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
8131
<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-privkey-t" title="gnutls_x509_privkey_t"><span class="type">gnutls_x509_privkey_t</span></a> key</code></em>);</pre>
8133
This function is the same a <a class="link" href="gnutls-x509.html#gnutls-x509-crq-sign2" title="gnutls_x509_crq_sign2 ()"><code class="function">gnutls_x509_crq_sign2()</code></a> with no flags,
8134
and SHA1 as the hash algorithm.
8136
<div class="variablelist"><table border="0">
8137
<col align="left" valign="top">
8140
<td><p><span class="term"><em class="parameter"><code>crq</code></em> :</span></p></td>
8141
<td>should contain a <a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> structure
8145
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
8146
<td>holds a private key
8150
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
8151
<td> On success, <a class="link" href="gnutls-gnutls.html#GNUTLS-E-SUCCESS:CAPS" title="GNUTLS_E_SUCCESS"><code class="literal">GNUTLS_E_SUCCESS</code></a> is returned, otherwise a
8152
negative error value.
8159
<div class="refsect2" title="gnutls_x509_crq_set_challenge_password ()">
7363
<td>should contain a <a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> structure</td>
7366
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
7367
<td>holds a private key</td>
7370
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
7371
<td>On success, <a class="link" href="gnutls-gnutls.html#GNUTLS-E-SUCCESS:CAPS" title="GNUTLS_E_SUCCESS"><code class="literal">GNUTLS_E_SUCCESS</code></a> is returned, otherwise a
7372
negative error value.</td>
7378
<div class="refsect2">
8160
7379
<a name="gnutls-x509-crq-set-challenge-password"></a><h3>gnutls_x509_crq_set_challenge_password ()</h3>
8161
7380
<pre class="programlisting"><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> gnutls_x509_crq_set_challenge_password
8162
(<em class="parameter"><code><a class="link" href="gnutls-x509.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
7381
(<em class="parameter"><code><a class="link" href="gnutls-gnutls.html#gnutls-x509-crq-t" title="gnutls_x509_crq_t"><span class="type">gnutls_x509_crq_t</span></a> crq</code></em>,
8163
7382
<em class="parameter"><code>const <span class="type">char</span> *pass</code></em>);</pre>
8165
7384
This function will set a challenge password to be used when