| 1 |
# Arabic translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# زايد السعيدي <[email protected]>, 2026. |
| 5 |
msgid "" |
| 6 |
msgstr "" |
| 7 |
"Project-Id-Version: manpages-l10n 4.30.2\n" |
| 8 |
"POT-Creation-Date: 2026-06-05 06:44+0200\n" |
| 9 |
"PO-Revision-Date: 2026-06-03 18:29+0400\n" |
| 10 |
"Last-Translator: Zayed Al-Saidi <[email protected]>\n" |
| 11 |
"Language-Team: Arabic <[email protected]>\n" |
| 12 |
"Language: ar\n" |
| 13 |
"MIME-Version: 1.0\n" |
| 14 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 15 |
"Content-Transfer-Encoding: 8bit\n" |
| 16 |
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " |
| 17 |
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" |
| 18 |
"X-Generator: Lokalize 23.08.5\n" |
| 19 |
|
| 20 |
# #-#-#-#-# archlinux: SSL_CTX_set_verify.3ssl.pot (PACKAGE VERSION) |
| 21 |
# #-#-#-#-# |
| 22 |
# |
| 23 |
#. #-#-#-#-# archlinux: SSL_CTX_set_verify.3ssl.pot (PACKAGE VERSION) #-#-#-#-# |
| 24 |
#. Required to disable full justification in groff 1.23.0. |
| 25 |
#. ======================================================================== |
| 26 |
#. type: IX |
| 27 |
#. #-#-#-#-# debian-trixie: SSL_CTX_set_verify.3ssl.pot (PACKAGE VERSION) #-#-#-#-# |
| 28 |
#. ======================================================================== |
| 29 |
#. type: IX |
| 30 |
#. #-#-#-#-# debian-unstable: SSL_CTX_set_verify.3ssl.pot (PACKAGE VERSION) #-#-#-#-# |
| 31 |
#. ======================================================================== |
| 32 |
#. type: IX |
| 33 |
#: archlinux debian-trixie debian-unstable |
| 34 |
#, no-wrap |
| 35 |
msgid "Title" |
| 36 |
msgstr "Title" |
| 37 |
|
| 38 |
#. Required to disable full justification in groff 1.23.0. |
| 39 |
#. ======================================================================== |
| 40 |
#. type: IX |
| 41 |
#: archlinux |
| 42 |
#, no-wrap |
| 43 |
msgid "SSL_CTX_SET_VERIFY 3ssl" |
| 44 |
msgstr "SSL_CTX_SET_VERIFY 3ssl" |
| 45 |
|
| 46 |
#. type: TH |
| 47 |
#: archlinux debian-trixie debian-unstable |
| 48 |
#, no-wrap |
| 49 |
msgid "SSL_CTX_SET_VERIFY" |
| 50 |
msgstr "SSL_CTX_SET_VERIFY" |
| 51 |
|
| 52 |
#. type: TH |
| 53 |
#: archlinux debian-trixie debian-unstable |
| 54 |
#, no-wrap |
| 55 |
msgid "2026-04-07" |
| 56 |
msgstr "7 أبريل 2026" |
| 57 |
|
| 58 |
#. type: TH |
| 59 |
#: archlinux debian-unstable |
| 60 |
#, no-wrap |
| 61 |
msgid "3.6.2" |
| 62 |
msgstr "3.6.2" |
| 63 |
|
| 64 |
#. type: TH |
| 65 |
#: archlinux debian-trixie debian-unstable |
| 66 |
#, no-wrap |
| 67 |
msgid "OpenSSL" |
| 68 |
msgstr "OpenSSL" |
| 69 |
|
| 70 |
#. type: SH |
| 71 |
#: archlinux debian-trixie debian-unstable |
| 72 |
#, no-wrap |
| 73 |
msgid "NAME" |
| 74 |
msgstr "الاسم" |
| 75 |
|
| 76 |
#. type: Plain text |
| 77 |
#: archlinux debian-trixie debian-unstable |
| 78 |
msgid "" |
| 79 |
"SSL_get_ex_data_X509_STORE_CTX_idx, SSL_CTX_set_verify, SSL_set_verify, " |
| 80 |
"SSL_CTX_set_verify_depth, SSL_set_verify_depth, SSL_verify_cb, " |
| 81 |
"SSL_verify_client_post_handshake, SSL_set_post_handshake_auth, " |
| 82 |
"SSL_CTX_set_post_handshake_auth \\&- set various SSL/TLS parameters for peer " |
| 83 |
"certificate verification" |
| 84 |
msgstr "" |
| 85 |
"SSL_get_ex_data_X509_STORE_CTX_idx, SSL_CTX_set_verify, SSL_set_verify, " |
| 86 |
"SSL_CTX_set_verify_depth, SSL_set_verify_depth, SSL_verify_cb, " |
| 87 |
"SSL_verify_client_post_handshake, SSL_set_post_handshake_auth, " |
| 88 |
"SSL_CTX_set_post_handshake_auth \\&- ضبط معاملات SSL/TLS مختلفة للتحقق من " |
| 89 |
"شهادة النظير" |
| 90 |
|
| 91 |
#. type: IX |
| 92 |
#: archlinux debian-trixie debian-unstable |
| 93 |
#, no-wrap |
| 94 |
msgid "SYNOPSIS" |
| 95 |
msgstr "موجز" |
| 96 |
|
| 97 |
#. type: IX |
| 98 |
#: archlinux debian-trixie debian-unstable |
| 99 |
#, no-wrap |
| 100 |
msgid "Header" |
| 101 |
msgstr "Header" |
| 102 |
|
| 103 |
#. type: Plain text |
| 104 |
#: archlinux debian-trixie debian-unstable |
| 105 |
#, no-wrap |
| 106 |
msgid "" |
| 107 |
"\\& #include E<lt>openssl/ssl.hE<gt>\n" |
| 108 |
"\\&\n" |
| 109 |
"\\& typedef int (*SSL_verify_cb)(int preverify_ok, X509_STORE_CTX *x509_ctx);\n" |
| 110 |
"\\&\n" |
| 111 |
"\\& void SSL_CTX_set_verify(SSL_CTX *ctx, int mode, SSL_verify_cb verify_callback);\n" |
| 112 |
"\\& void SSL_set_verify(SSL *ssl, int mode, SSL_verify_cb verify_callback);\n" |
| 113 |
"\\& SSL_get_ex_data_X509_STORE_CTX_idx(void);\n" |
| 114 |
"\\&\n" |
| 115 |
"\\& void SSL_CTX_set_verify_depth(SSL_CTX *ctx, int depth);\n" |
| 116 |
"\\& void SSL_set_verify_depth(SSL *ssl, int depth);\n" |
| 117 |
"\\&\n" |
| 118 |
"\\& int SSL_verify_client_post_handshake(SSL *ssl);\n" |
| 119 |
"\\& void SSL_CTX_set_post_handshake_auth(SSL_CTX *ctx, int val);\n" |
| 120 |
"\\& void SSL_set_post_handshake_auth(SSL *ssl, int val);\n" |
| 121 |
msgstr "" |
| 122 |
"\\& #include E<lt>openssl/ssl.hE<gt>\n" |
| 123 |
"\\&\n" |
| 124 |
"\\& typedef int (*SSL_verify_cb)(int preverify_ok, X509_STORE_CTX *x509_ctx);\n" |
| 125 |
"\\&\n" |
| 126 |
"\\& void SSL_CTX_set_verify(SSL_CTX *ctx, int mode, SSL_verify_cb verify_callback);\n" |
| 127 |
"\\& void SSL_set_verify(SSL *ssl, int mode, SSL_verify_cb verify_callback);\n" |
| 128 |
"\\& SSL_get_ex_data_X509_STORE_CTX_idx(void);\n" |
| 129 |
"\\&\n" |
| 130 |
"\\& void SSL_CTX_set_verify_depth(SSL_CTX *ctx, int depth);\n" |
| 131 |
"\\& void SSL_set_verify_depth(SSL *ssl, int depth);\n" |
| 132 |
"\\&\n" |
| 133 |
"\\& int SSL_verify_client_post_handshake(SSL *ssl);\n" |
| 134 |
"\\& void SSL_CTX_set_post_handshake_auth(SSL_CTX *ctx, int val);\n" |
| 135 |
"\\& void SSL_set_post_handshake_auth(SSL *ssl, int val);\n" |
| 136 |
|
| 137 |
#. type: IX |
| 138 |
#: archlinux debian-trixie debian-unstable |
| 139 |
#, no-wrap |
| 140 |
msgid "DESCRIPTION" |
| 141 |
msgstr "الوصف" |
| 142 |
|
| 143 |
#. type: Plain text |
| 144 |
#: archlinux debian-trixie debian-unstable |
| 145 |
msgid "" |
| 146 |
"\\&B<SSL_CTX_set_verify()> sets the verification flags for B<ctx> to be " |
| 147 |
"B<mode> and specifies the B<verify_callback> function to be used. If no " |
| 148 |
"callback function shall be specified, the NULL pointer can be used for " |
| 149 |
"B<verify_callback>. B<ctx> B<MUST NOT> be NULL." |
| 150 |
msgstr "" |
| 151 |
"\\&B<SSL_CTX_set_verify()> تضبط أعلام التحقق لـ B<ctx> لتكون B<mode> وتحدد " |
| 152 |
"دالة B<verify_callback> المستخدمة. إذا لم تُحدد دالة رد نداء، يمكن استخدام " |
| 153 |
"المؤشر NULL لـ B<verify_callback>. B<ctx> B<يجب ألا> يكون NULL." |
| 154 |
|
| 155 |
#. type: Plain text |
| 156 |
#: archlinux debian-trixie debian-unstable |
| 157 |
msgid "" |
| 158 |
"\\&B<SSL_set_verify()> sets the verification flags for B<ssl> to be B<mode> " |
| 159 |
"and specifies the B<verify_callback> function to be used. If no callback " |
| 160 |
"function shall be specified, the NULL pointer can be used for " |
| 161 |
"B<verify_callback>. In this case last B<verify_callback> set specifically " |
| 162 |
"for this B<ssl> remains. If no special B<callback> was set before, the " |
| 163 |
"default callback for the underlying \\&B<ctx> is used, that was valid at the " |
| 164 |
"time B<ssl> was created with \\&B<SSL_new>\\|(3). Within the callback " |
| 165 |
"function, \\&B<SSL_get_ex_data_X509_STORE_CTX_idx> can be called to get the " |
| 166 |
"data index of the current SSL object that is doing the verification." |
| 167 |
msgstr "" |
| 168 |
"\\&B<SSL_set_verify()> تضبط أعلام التحقق لـ B<ssl> لتكون B<mode> وتحدد دالة " |
| 169 |
"B<verify_callback> المستخدمة. إذا لم تُحدد دالة رد نداء، يمكن استخدام المؤشر " |
| 170 |
"NULL لـ B<verify_callback>. في هذه الحالة، يبقى آخر B<verify_callback> مضبوط " |
| 171 |
"خصيصًا لهذا B<ssl>. إذا لم يُضبط B<callback> خاص من قبل، يُستخدم رد النداء " |
| 172 |
"المبدئي لـ \\&B<ctx> الأساسي، الذي كان صالحًا وقت إنشاء B<ssl> باستخدام " |
| 173 |
"\\&B<SSL_new>\\|(3). داخل دالة رد النداء، يمكن استدعاء " |
| 174 |
"\\&B<SSL_get_ex_data_X509_STORE_CTX_idx> للحصول على فهرس بيانات كائن SSL " |
| 175 |
"الحالي الذي يقوم بالتحقق." |
| 176 |
|
| 177 |
#. type: Plain text |
| 178 |
#: archlinux debian-trixie debian-unstable |
| 179 |
msgid "" |
| 180 |
"In client mode B<verify_callback> may also call the " |
| 181 |
"B<SSL_set_retry_verify>\\|(3) function on the B<SSL> object set in the " |
| 182 |
"I<x509_store_ctx> ex data (see \\&B<SSL_get_ex_data_X509_STORE_CTX_idx>\\|" |
| 183 |
"(3)) and return 1. This would be typically done in case the certificate " |
| 184 |
"verification was not yet able to succeed. This makes the handshake suspend " |
| 185 |
"and return control to the calling application with " |
| 186 |
"B<SSL_ERROR_WANT_RETRY_VERIFY>. The application can for instance fetch " |
| 187 |
"further certificates or cert status information needed for the " |
| 188 |
"verification. Calling B<SSL_connect>\\|(3) again resumes the connection " |
| 189 |
"attempt by retrying the server certificate verification step. This process " |
| 190 |
"may even be repeated if need be. Note that the handshake may still be " |
| 191 |
"aborted if a subsequent invocation of the callback (e.g., at a lower depth, " |
| 192 |
"or for a separate error condition) returns 0." |
| 193 |
msgstr "" |
| 194 |
"في وضع العميل، قد تستدعي B<verify_callback> أيضًا دالة " |
| 195 |
"B<SSL_set_retry_verify>\\|(3) على كائن B<SSL> المضبوط في البيانات الإضافية " |
| 196 |
"I<x509_store_ctx> (انظر \\&B<SSL_get_ex_data_X509_STORE_CTX_idx>\\|(3)) " |
| 197 |
"وتُرجع 1. يُفعل هذا عادةً عندما لا يتمكن التحقق من الشهادة من النجاح بعد. يؤدي " |
| 198 |
"هذا إلى تعليق المصافحة وإعادة التحكم إلى التطبيق المستدعي مع " |
| 199 |
"B<SSL_ERROR_WANT_RETRY_VERIFY>. يمكن للتطبيق، على سبيل المثال، جلب شهادات " |
| 200 |
"إضافية أو معلومات حالة الشهادة اللازمة للتحقق. استدعاء B<SSL_connect>\\|(3) " |
| 201 |
"مرة أخرى يستأنف محاولة الاتصال بإعادة محاولة خطوة التحقق من شهادة الخادم. قد " |
| 202 |
"تُكرر هذه العملية إذا لزم الأمر. لاحظ أن المصافحة قد تُلغى إذا أعاد استدعاء " |
| 203 |
"لاحق لرد النداء (مثلًا، على عمق أقل، أو لشرط خطأ منفصل) القيمة 0." |
| 204 |
|
| 205 |
#. type: Plain text |
| 206 |
#: archlinux debian-trixie debian-unstable |
| 207 |
msgid "" |
| 208 |
"\\&B<SSL_CTX_set_verify_depth()> sets the maximum B<depth> for the " |
| 209 |
"certificate chain verification that shall be allowed for B<ctx>." |
| 210 |
msgstr "" |
| 211 |
"\\&B<SSL_CTX_set_verify_depth()> تضبط أقصى B<depth> للتحقق من سلسلة الشهادات " |
| 212 |
"المسموح به لـ B<ctx>." |
| 213 |
|
| 214 |
#. type: Plain text |
| 215 |
#: archlinux debian-trixie debian-unstable |
| 216 |
msgid "" |
| 217 |
"\\&B<SSL_set_verify_depth()> sets the maximum B<depth> for the certificate " |
| 218 |
"chain verification that shall be allowed for B<ssl>." |
| 219 |
msgstr "" |
| 220 |
"\\&B<SSL_set_verify_depth()> تضبط أقصى B<depth> للتحقق من سلسلة الشهادات " |
| 221 |
"المسموح به لـ B<ssl>." |
| 222 |
|
| 223 |
#. type: Plain text |
| 224 |
#: archlinux debian-trixie debian-unstable |
| 225 |
msgid "" |
| 226 |
"\\&B<SSL_CTX_set_post_handshake_auth()> and B<SSL_set_post_handshake_auth()> " |
| 227 |
"enable the Post-Handshake Authentication extension to be added to the " |
| 228 |
"ClientHello such that post-handshake authentication can be requested by the " |
| 229 |
"server. If B<val> is 0 then the extension is not sent, otherwise it is. By " |
| 230 |
"default the extension is not sent. A certificate callback will need to be " |
| 231 |
"set via \\&B<SSL_CTX_set_client_cert_cb()> if no certificate is provided at " |
| 232 |
"initialization." |
| 233 |
msgstr "" |
| 234 |
"\\&B<SSL_CTX_set_post_handshake_auth()> و B<SSL_set_post_handshake_auth()> " |
| 235 |
"تُفعِّلان إضافة امتداد المصادقة بعد المصافحة إلى ClientHello بحيث يمكن للخادم " |
| 236 |
"طلب المصادقة بعد المصافحة. إذا كانت B<val> تساوي 0، لا يُرسل الامتداد، وإلا " |
| 237 |
"يُرسل. مبدئيًا، لا يُرسل الامتداد. يجب ضبط رد نداء شهادة عبر " |
| 238 |
"\\&B<SSL_CTX_set_client_cert_cb()> إذا لم تُقدم شهادة عند التهيئة." |
| 239 |
|
| 240 |
#. type: Plain text |
| 241 |
#: archlinux debian-trixie debian-unstable |
| 242 |
msgid "" |
| 243 |
"\\&B<SSL_verify_client_post_handshake()> causes a CertificateRequest message " |
| 244 |
"to be sent by a server on the given B<ssl> connection. The SSL_VERIFY_PEER " |
| 245 |
"flag must be set; the SSL_VERIFY_POST_HANDSHAKE flag is optional." |
| 246 |
msgstr "" |
| 247 |
"\\&B<SSL_verify_client_post_handshake()> تُسبب إرسال رسالة طلب شهادة من خادم " |
| 248 |
"على اتصال B<ssl> المعطى. يجب ضبط العلم SSL_VERIFY_PEER؛ العلم " |
| 249 |
"SSL_VERIFY_POST_HANDSHAKE اختياري." |
| 250 |
|
| 251 |
#. type: IX |
| 252 |
#: archlinux debian-trixie debian-unstable |
| 253 |
#, no-wrap |
| 254 |
msgid "NOTES" |
| 255 |
msgstr "ملاحظات" |
| 256 |
|
| 257 |
#. type: Plain text |
| 258 |
#: archlinux |
| 259 |
msgid "" |
| 260 |
"The verification of certificates can be controlled by a set of logically " |
| 261 |
"or\\*(Aqed B<mode> flags:" |
| 262 |
msgstr "" |
| 263 |
"يمكن التحكم في التحقق من الشهادات بواسطة مجموعة من أعلام B<mode> المدمجة " |
| 264 |
"منطقيًا بـ \"أو\":" |
| 265 |
|
| 266 |
#. type: IX |
| 267 |
#: archlinux debian-trixie debian-unstable |
| 268 |
#, no-wrap |
| 269 |
msgid "SSL_VERIFY_NONE" |
| 270 |
msgstr "SSL_VERIFY_NONE" |
| 271 |
|
| 272 |
#. type: IX |
| 273 |
#: archlinux debian-trixie debian-unstable |
| 274 |
#, no-wrap |
| 275 |
msgid "Item" |
| 276 |
msgstr "Item" |
| 277 |
|
| 278 |
#. type: Plain text |
| 279 |
#: archlinux debian-trixie debian-unstable |
| 280 |
msgid "" |
| 281 |
"\\&B<Server mode:> the server will not send a client certificate request to " |
| 282 |
"the client, so the client will not send a certificate." |
| 283 |
msgstr "" |
| 284 |
"\\&B<وضع الخادم:> لن يرسل الخادم طلب شهادة عميل إلى العميل، لذا لن يرسل " |
| 285 |
"العميل شهادة." |
| 286 |
|
| 287 |
#. type: Plain text |
| 288 |
#: archlinux debian-trixie debian-unstable |
| 289 |
msgid "" |
| 290 |
"\\&B<Client mode:> if not using an anonymous cipher (by default disabled), " |
| 291 |
"the server will send a certificate which will be checked. The result of the " |
| 292 |
"certificate verification process can be checked after the TLS/SSL handshake " |
| 293 |
"using the B<SSL_get_verify_result>\\|(3) function. The handshake will be " |
| 294 |
"continued regardless of the verification result." |
| 295 |
msgstr "" |
| 296 |
"\\&B<وضع العميل:> إذا لم يُستخدم مُعمٍّ مجهول (معطل مبدئيًا)، سيرسل الخادم شهادة " |
| 297 |
"سيُفحص. يمكن فحص نتيجة عملية التحقق من الشهادة بعد مصافحة TLS/SSL باستخدام " |
| 298 |
"دالة B<SSL_get_verify_result>\\|(3). ستستمر المصافحة بغض النظر عن نتيجة " |
| 299 |
"التحقق." |
| 300 |
|
| 301 |
#. type: IX |
| 302 |
#: archlinux debian-trixie debian-unstable |
| 303 |
#, no-wrap |
| 304 |
msgid "SSL_VERIFY_PEER" |
| 305 |
msgstr "SSL_VERIFY_PEER" |
| 306 |
|
| 307 |
#. type: Plain text |
| 308 |
#: archlinux debian-trixie debian-unstable |
| 309 |
msgid "" |
| 310 |
"\\&B<Server mode:> the server sends a client certificate request to the " |
| 311 |
"client. The certificate returned (if any) is checked. If the verification " |
| 312 |
"process fails, the TLS/SSL handshake is immediately terminated with an alert " |
| 313 |
"message containing the reason for the verification failure. The behaviour " |
| 314 |
"can be controlled by the additional SSL_VERIFY_FAIL_IF_NO_PEER_CERT, " |
| 315 |
"SSL_VERIFY_CLIENT_ONCE and SSL_VERIFY_POST_HANDSHAKE flags." |
| 316 |
msgstr "" |
| 317 |
"\\&B<وضع الخادم:> يرسل الخادم طلب شهادة عميل إلى العميل. تُفحص الشهادة " |
| 318 |
"المُعادة (إن وُجدت). إذا فشلت عملية التحقق، تُنهى مصافحة TLS/SSL فورًا برسالة " |
| 319 |
"تنبيه تحتوي على سبب فشل التحقق. يمكن التحكم في السلوك بواسطة الأعلام " |
| 320 |
"الإضافية SSL_VERIFY_FAIL_IF_NO_PEER_CERT و SSL_VERIFY_CLIENT_ONCE و " |
| 321 |
"SSL_VERIFY_POST_HANDSHAKE." |
| 322 |
|
| 323 |
#. type: Plain text |
| 324 |
#: archlinux debian-trixie debian-unstable |
| 325 |
msgid "" |
| 326 |
"\\&B<Client mode:> the server certificate is verified. If the verification " |
| 327 |
"process fails, the TLS/SSL handshake is immediately terminated with an alert " |
| 328 |
"message containing the reason for the verification failure. If no server " |
| 329 |
"certificate is sent, because an anonymous cipher is used, SSL_VERIFY_PEER is " |
| 330 |
"ignored." |
| 331 |
msgstr "" |
| 332 |
"\\&B<وضع العميل:> تُتحقق شهادة الخادم. إذا فشلت عملية التحقق، تُنهى مصافحة TLS/" |
| 333 |
"SSL فورًا برسالة تنبيه تحتوي على سبب فشل التحقق. إذا لم تُرسل شهادة خادم، بسبب " |
| 334 |
"استخدام مُعمٍّ مجهول، يُتجاهل SSL_VERIFY_PEER." |
| 335 |
|
| 336 |
#. type: IX |
| 337 |
#: archlinux debian-trixie debian-unstable |
| 338 |
#, no-wrap |
| 339 |
msgid "SSL_VERIFY_FAIL_IF_NO_PEER_CERT" |
| 340 |
msgstr "SSL_VERIFY_FAIL_IF_NO_PEER_CERT" |
| 341 |
|
| 342 |
#. type: Plain text |
| 343 |
#: archlinux debian-trixie debian-unstable |
| 344 |
msgid "" |
| 345 |
"\\&B<Server mode:> if the client did not return a certificate, the TLS/SSL " |
| 346 |
"handshake is immediately terminated with a \"handshake failure\" alert. " |
| 347 |
"This flag must be used together with SSL_VERIFY_PEER." |
| 348 |
msgstr "" |
| 349 |
"\\&B<وضع الخادم:> إذا لم يُعد العميل شهادة، تُنهى مصافحة TLS/SSL فورًا بتنبية " |
| 350 |
"\"فشل المصافحة\". يجب استخدام هذا العلم مع SSL_VERIFY_PEER." |
| 351 |
|
| 352 |
#. type: Plain text |
| 353 |
#: archlinux debian-trixie debian-unstable |
| 354 |
msgid "\\&B<Client mode:> ignored (see BUGS)" |
| 355 |
msgstr "\\&B<وضع العميل:> تم تجاهله (انظر الأخطاء)" |
| 356 |
|
| 357 |
#. type: IX |
| 358 |
#: archlinux debian-trixie debian-unstable |
| 359 |
#, no-wrap |
| 360 |
msgid "SSL_VERIFY_CLIENT_ONCE" |
| 361 |
msgstr "SSL_VERIFY_CLIENT_ONCE" |
| 362 |
|
| 363 |
#. type: Plain text |
| 364 |
#: archlinux debian-trixie debian-unstable |
| 365 |
msgid "" |
| 366 |
"\\&B<Server mode:> only request a client certificate once during the " |
| 367 |
"connection. Do not ask for a client certificate again during renegotiation " |
| 368 |
"or post-authentication if a certificate was requested during the initial " |
| 369 |
"handshake. This flag must be used together with SSL_VERIFY_PEER." |
| 370 |
msgstr "" |
| 371 |
"\\&B<وضع الخادم:> يُطلب شهادة العميل مرة واحدة فقط أثناء الاتصال. لا يُطلب " |
| 372 |
"شهادة العميل مرة أخرى أثناء إعادة التفاوض أو ما بعد الاستيثاق إذا طُلبت شهادة " |
| 373 |
"أثناء المصافحة الأولية. يجب استخدام هذه العلامة مع SSL_VERIFY_PEER." |
| 374 |
|
| 375 |
#. type: IX |
| 376 |
#: archlinux debian-trixie debian-unstable |
| 377 |
#, no-wrap |
| 378 |
msgid "SSL_VERIFY_POST_HANDSHAKE" |
| 379 |
msgstr "SSL_VERIFY_POST_HANDSHAKE" |
| 380 |
|
| 381 |
#. type: Plain text |
| 382 |
#: archlinux debian-trixie debian-unstable |
| 383 |
msgid "" |
| 384 |
"\\&B<Server mode:> the server will not send a client certificate request " |
| 385 |
"during the initial handshake, but will send the request via " |
| 386 |
"\\&B<SSL_verify_client_post_handshake()>. This allows the SSL_CTX or SSL to " |
| 387 |
"be configured for post-handshake peer verification before the handshake " |
| 388 |
"occurs. This flag must be used together with SSL_VERIFY_PEER. TLSv1.3 only; " |
| 389 |
"no effect on pre-TLSv1.3 connections." |
| 390 |
msgstr "" |
| 391 |
"\\&B<وضع الخادم:> لن يُرسل الخادم طلب شهادة عميل أثناء المصافحة الأولية، بل " |
| 392 |
"يُرسل الطلب عبر \\&B<SSL_verify_client_post_handshake()>. يسمح هذا بتكوين " |
| 393 |
"SSL_CTX أو SSL للتحقق من النظير بعد المصافحة قبل حدوث المصافحة. يجب استخدام " |
| 394 |
"هذه العلامة مع SSL_VERIFY_PEER. TLSv1.3 فقط؛ لا تأثير على اتصالات ما قبل " |
| 395 |
"TLSv1.3." |
| 396 |
|
| 397 |
#. type: Plain text |
| 398 |
#: archlinux debian-trixie debian-unstable |
| 399 |
msgid "If the B<mode> is SSL_VERIFY_NONE none of the other flags may be set." |
| 400 |
msgstr "" |
| 401 |
"إذا كان B<الوضع> هو SSL_VERIFY_NONE، فلا يجوز تعيين أي من العلامات الأخرى." |
| 402 |
|
| 403 |
#. type: Plain text |
| 404 |
#: archlinux debian-trixie debian-unstable |
| 405 |
msgid "" |
| 406 |
"If verification flags are not modified explicitly by " |
| 407 |
"CW<SSL_CTX_set_verify()> or CW<SSL_set_verify()>, the default value will be " |
| 408 |
"SSL_VERIFY_NONE." |
| 409 |
msgstr "" |
| 410 |
"إذا لم تُعدّل علامات التحقق صراحةً بواسطة CW<SSL_CTX_set_verify()> أو " |
| 411 |
"CW<SSL_set_verify()>، فستكون القيمة المبدئية هي SSL_VERIFY_NONE." |
| 412 |
|
| 413 |
#. type: Plain text |
| 414 |
#: archlinux debian-trixie debian-unstable |
| 415 |
msgid "" |
| 416 |
"The actual verification procedure is performed either using the built-in " |
| 417 |
"verification procedure or using another application provided verification " |
| 418 |
"function set with \\&B<SSL_CTX_set_cert_verify_callback>\\|(3). The " |
| 419 |
"following descriptions apply in the case of the built-in procedure. An " |
| 420 |
"application provided procedure also has access to the verify depth " |
| 421 |
"information and the B<verify_callback()> function, but the way this " |
| 422 |
"information is used may be different." |
| 423 |
msgstr "" |
| 424 |
"تُنفذ عملية التحقق الفعلية إما باستخدام إجراء التحقق المدمج أو باستخدام دالة " |
| 425 |
"تحقق مقدمة من تطبيق آخر معيّنة مع \\&B<SSL_CTX_set_cert_verify_callback>\\|" |
| 426 |
"(3). تنطبق الأوصاف التالية في حالة الإجراء المدمج. كما أن للإجراء المقدم من " |
| 427 |
"التطبيق وصول إلى معلومات عمق التحقق ودالة B<verify_callback()>، لكن طريقة " |
| 428 |
"استخدام هذه المعلومات قد تكون مختلفة." |
| 429 |
|
| 430 |
#. type: Plain text |
| 431 |
#: archlinux debian-trixie debian-unstable |
| 432 |
msgid "" |
| 433 |
"\\&B<SSL_CTX_set_verify_depth()> and B<SSL_set_verify_depth()> set a limit " |
| 434 |
"on the number of certificates between the end-entity and trust-anchor " |
| 435 |
"certificates. Neither the end-entity nor the trust-anchor certificates " |
| 436 |
"count against B<depth>. If the certificate chain needed to reach a trusted " |
| 437 |
"issuer is longer than B<depth+2>, X509_V_ERR_CERT_CHAIN_TOO_LONG will be " |
| 438 |
"issued. The depth count is \"level 0:peer certificate\", \"level 1: CA " |
| 439 |
"certificate\", \"level 2: higher level CA certificate\", and so on. Setting " |
| 440 |
"the maximum depth to 2 allows the levels 0, 1, 2 and 3 (0 being the end-" |
| 441 |
"entity and 3 the trust-anchor). The default depth limit is 100, allowing " |
| 442 |
"for the peer certificate, at most 100 intermediate CA certificates and a " |
| 443 |
"final trust anchor certificate." |
| 444 |
msgstr "" |
| 445 |
"\\&B<SSL_CTX_set_verify_depth()> و B<SSL_set_verify_depth()> يضعان حدًا لعدد " |
| 446 |
"الشهادات بين شهادات الكيان النهائي ومرساة الثقة. لا تُحتسب شهادات الكيان " |
| 447 |
"النهائي ولا مرساة الثقة ضمن B<العمق>. إذا كانت سلسلة الشهادات اللازمة للوصول " |
| 448 |
"إلى مُصدر موثوق أطول من B<العمق+2>، فسيُصدر X509_V_ERR_CERT_CHAIN_TOO_LONG. " |
| 449 |
"يُحسب العمق كـ \"المستوى 0: شهادة النظير\"، \"المستوى 1: شهادة CA\"، " |
| 450 |
"\"المستوى 2: شهادة CA ذات مستوى أعلى\"، وهكذا. تعيين الحد الأقصى للعمق إلى 2 " |
| 451 |
"يسمح بالمستويات 0 و1 و2 و3 (0 هو الكيان النهائي و3 هو مرساة الثقة). الحد " |
| 452 |
"المبدئي للعمق هو 100، مما يسمح بشهادة النظير، وعلى الأكثر 100 شهادة CA وسيطة " |
| 453 |
"وشهادة مرساة ثقة نهائية." |
| 454 |
|
| 455 |
#. type: Plain text |
| 456 |
#: archlinux debian-trixie debian-unstable |
| 457 |
msgid "" |
| 458 |
"The B<verify_callback> function is used to control the behaviour when the " |
| 459 |
"SSL_VERIFY_PEER flag is set. It must be supplied by the application and " |
| 460 |
"receives two arguments: B<preverify_ok> indicates, whether the verification " |
| 461 |
"of the certificate in question was passed (preverify_ok=1) or not " |
| 462 |
"(preverify_ok=0). B<x509_ctx> is a pointer to the complete context used for " |
| 463 |
"the certificate chain verification." |
| 464 |
msgstr "" |
| 465 |
"تُستخدم دالة B<verify_callback> للتحكم في السلوك عند تعيين علامة " |
| 466 |
"SSL_VERIFY_PEER. يجب أن تُوفر من قبل التطبيق وتستقبل وسيطين: يشير " |
| 467 |
"B<preverify_ok> إلى ما إذا كان التحقق من الشهادة المعنية قد نُجح " |
| 468 |
"(preverify_ok=1) أم لا (preverify_ok=0). B<x509_ctx> هو مؤشر إلى السياق " |
| 469 |
"الكامل المستخدم للتحقق من سلسلة الشهادات." |
| 470 |
|
| 471 |
#. type: Plain text |
| 472 |
#: archlinux |
| 473 |
msgid "" |
| 474 |
"The certificate chain is checked starting with the deepest nesting level " |
| 475 |
"(the root CA certificate) and worked upward to the peer\\*(Aqs certificate. " |
| 476 |
"At each level signatures and issuer attributes are checked. Whenever a " |
| 477 |
"verification error is found, the error number is stored in B<x509_ctx> and " |
| 478 |
"B<verify_callback> is called with B<preverify_ok>=0. By applying " |
| 479 |
"X509_CTX_store_* functions B<verify_callback> can locate the certificate in " |
| 480 |
"question and perform additional steps (see EXAMPLES). If no error is found " |
| 481 |
"for a certificate, B<verify_callback> is called with B<preverify_ok>=1 " |
| 482 |
"before advancing to the next level." |
| 483 |
msgstr "" |
| 484 |
"تُفحص سلسلة الشهادات بدءًا من أعمق مستوى تداخل (شهادة CA الجذر) وتتجه صعودًا " |
| 485 |
"إلى شهادة النظير. في كل مستوى، تُفحص التوقيعات وسمات المُصدر. كلما وُجد خطأ " |
| 486 |
"تحقق، يُخزن رقم الخطأ في B<x509_ctx> وتُستدعى B<verify_callback> مع " |
| 487 |
"B<preverify_ok>=0. بتطبيق دوال X509_CTX_store_*، يمكن لـ B<verify_callback> " |
| 488 |
"تحديد موقع الشهادة المعنية وتنفيذ خطوات إضافية (انظر الأمثلة). إذا لم يُعثر " |
| 489 |
"على خطأ لشهادة، تُستدعى B<verify_callback> مع B<preverify_ok>=1 قبل التقدم " |
| 490 |
"إلى المستوى التالي." |
| 491 |
|
| 492 |
#. type: Plain text |
| 493 |
#: archlinux debian-trixie debian-unstable |
| 494 |
msgid "" |
| 495 |
"The return value of B<verify_callback> controls the strategy of the further " |
| 496 |
"verification process. If B<verify_callback> returns 0, the verification " |
| 497 |
"process is immediately stopped with \"verification failed\" state. If " |
| 498 |
"SSL_VERIFY_PEER is set, a verification failure alert is sent to the peer and " |
| 499 |
"the TLS/SSL handshake is terminated. If B<verify_callback> returns 1, the " |
| 500 |
"verification process is continued. If B<verify_callback> always returns 1, " |
| 501 |
"the TLS/SSL handshake will not be terminated with respect to verification " |
| 502 |
"failures and the connection will be established. The calling process can " |
| 503 |
"however retrieve the error code of the last verification error using " |
| 504 |
"\\&B<SSL_get_verify_result>\\|(3) or by maintaining its own error storage " |
| 505 |
"managed by B<verify_callback>." |
| 506 |
msgstr "" |
| 507 |
"تتحكم قيمة إرجاع B<verify_callback> في استراتيجية عملية التحقق الإضافية. إذا " |
| 508 |
"أعادت B<verify_callback> 0، تتوقف عملية التحقق فورًا مع حالة \"فشل التحقق\". " |
| 509 |
"إذا عُيّنت SSL_VERIFY_PEER، يُرسل تنبيه فشل التحقق إلى النظير وتُنهى مصافحة TLS/" |
| 510 |
"SSL. إذا أعادت B<verify_callback> 1، تُستمر عملية التحقق. إذا أعادت " |
| 511 |
"B<verify_callback> دائمًا 1، فلن تُنهى مصافحة TLS/SSL بسبب إخفاقات التحقق " |
| 512 |
"وسيُؤسس الاتصال. يمكن لعملية الاستدعاء مع ذلك استرداد رمز خطأ آخر خطأ تحقق " |
| 513 |
"باستخدام \\&B<SSL_get_verify_result>\\|(3) أو بالحفاظ على مخزن أخطاء خاص بها " |
| 514 |
"يُدار بواسطة B<verify_callback>." |
| 515 |
|
| 516 |
#. type: Plain text |
| 517 |
#: archlinux debian-trixie debian-unstable |
| 518 |
msgid "" |
| 519 |
"If no B<verify_callback> is specified, the default callback will be used. " |
| 520 |
"Its return value is identical to B<preverify_ok>, so that any verification " |
| 521 |
"failure will lead to a termination of the TLS/SSL handshake with an alert " |
| 522 |
"message, if SSL_VERIFY_PEER is set." |
| 523 |
msgstr "" |
| 524 |
"إذا لم يُحدد B<verify_callback>، فسيُستخدم الاستدعاء المبدئي. قيمته المرجعة " |
| 525 |
"مطابقة لـ B<preverify_ok>، لذا فإن أي فشل تحقق سيؤدي إلى إنهاء مصافحة TLS/" |
| 526 |
"SSL مع رسالة تنبيه، إذا عُيّنت SSL_VERIFY_PEER." |
| 527 |
|
| 528 |
#. type: Plain text |
| 529 |
#: archlinux debian-trixie debian-unstable |
| 530 |
msgid "" |
| 531 |
"After calling B<SSL_set_post_handshake_auth()>, the client will need to add " |
| 532 |
"a certificate or certificate callback to its configuration before it can " |
| 533 |
"successfully authenticate. This must be called before B<SSL_connect()>." |
| 534 |
msgstr "" |
| 535 |
"بعد استدعاء B<SSL_set_post_handshake_auth()>، سيحتاج العميل إلى إضافة شهادة " |
| 536 |
"أو استدعاء شهادة إلى تكوينه قبل أن يتمكن من الاستيثاق بنجاح. يجب استدعاء هذا " |
| 537 |
"قبل B<SSL_connect()>." |
| 538 |
|
| 539 |
#. type: Plain text |
| 540 |
#: archlinux debian-trixie debian-unstable |
| 541 |
msgid "" |
| 542 |
"\\&B<SSL_verify_client_post_handshake()> requires that verify flags have " |
| 543 |
"been previously set, and that a client sent the post-handshake " |
| 544 |
"authentication extension. When the client returns a certificate the verify " |
| 545 |
"callback will be invoked. A write operation must take place for the " |
| 546 |
"Certificate Request to be sent to the client, this can be done with " |
| 547 |
"B<SSL_do_handshake()> or B<SSL_write_ex()>. Only one certificate request " |
| 548 |
"may be outstanding at any time." |
| 549 |
msgstr "" |
| 550 |
"\\&B<SSL_verify_client_post_handshake()> يتطلب أن تكون علامات التحقق قد عُيّنت " |
| 551 |
"مسبقًا، وأن العميل قد أرسل امتداد الاستيثاق بعد المصافحة. عندما يُرجع العميل " |
| 552 |
"شهادة، سيُستدعى استدعاء التحقق. يجب أن تحدث عملية كتابة لإرسال طلب الشهادة " |
| 553 |
"إلى العميل، يمكن القيام بذلك باستخدام B<SSL_do_handshake()> أو " |
| 554 |
"B<SSL_write_ex()>. قد يكون طلب شهادة واحد فقط معلقًا في أي وقت." |
| 555 |
|
| 556 |
#. type: Plain text |
| 557 |
#: archlinux debian-trixie debian-unstable |
| 558 |
msgid "" |
| 559 |
"When post-handshake authentication occurs, a refreshed NewSessionTicket " |
| 560 |
"message is sent to the client." |
| 561 |
msgstr "" |
| 562 |
"عند حدوث الاستيثاق بعد المصافحة، تُرسل رسالة NewSessionTicket مُحدّثة إلى " |
| 563 |
"العميل." |
| 564 |
|
| 565 |
#. type: Plain text |
| 566 |
#: archlinux debian-trixie debian-unstable |
| 567 |
msgid "" |
| 568 |
"Post-handshake authentication cannot be used with QUIC. " |
| 569 |
"\\&B<SSL_set_post_handshake_auth()> has no effect if called on a QUIC SSL " |
| 570 |
"object." |
| 571 |
msgstr "" |
| 572 |
"لا يمكن استخدام الاستيثاق بعد المصافحة مع QUIC. " |
| 573 |
"\\&B<SSL_set_post_handshake_auth()> ليس له تأثير إذا استُدعي على كائن SSL من " |
| 574 |
"نوع QUIC." |
| 575 |
|
| 576 |
#. type: IX |
| 577 |
#: archlinux debian-trixie debian-unstable |
| 578 |
#, no-wrap |
| 579 |
msgid "BUGS" |
| 580 |
msgstr "العلل" |
| 581 |
|
| 582 |
#. type: Plain text |
| 583 |
#: archlinux debian-trixie debian-unstable |
| 584 |
msgid "" |
| 585 |
"In client mode, it is not checked whether the SSL_VERIFY_PEER flag is set, " |
| 586 |
"but whether any flags other than SSL_VERIFY_NONE are set. This can lead to " |
| 587 |
"unexpected behaviour if SSL_VERIFY_PEER and other flags are not used as " |
| 588 |
"required." |
| 589 |
msgstr "" |
| 590 |
"في وضع العميل، لا يُتحقق مما إذا كانت علامة SSL_VERIFY_PEER معيّنة، بل مما إذا " |
| 591 |
"كانت أي علامات غير SSL_VERIFY_NONE معيّنة. قد يؤدي هذا إلى سلوك غير متوقع إذا " |
| 592 |
"لم تُستخدم SSL_VERIFY_PEER والعلامات الأخرى كما هو مطلوب." |
| 593 |
|
| 594 |
#. type: IX |
| 595 |
#: archlinux debian-trixie debian-unstable |
| 596 |
#, no-wrap |
| 597 |
msgid "RETURN VALUES" |
| 598 |
msgstr "القيم المُرجعة" |
| 599 |
|
| 600 |
#. type: Plain text |
| 601 |
#: archlinux debian-trixie debian-unstable |
| 602 |
msgid "The SSL*_set_verify*() functions do not provide diagnostic information." |
| 603 |
msgstr "لا توفر دوال SSL*_set_verify*() معلومات تشخيصية." |
| 604 |
|
| 605 |
#. type: Plain text |
| 606 |
#: archlinux debian-trixie debian-unstable |
| 607 |
msgid "" |
| 608 |
"The B<SSL_verify_client_post_handshake()> function returns 1 if the request " |
| 609 |
"succeeded, and 0 if the request failed. The error stack can be examined to " |
| 610 |
"determine the failure reason." |
| 611 |
msgstr "" |
| 612 |
"تُرجع دالة B<SSL_verify_client_post_handshake()> 1 إذا نجح الطلب، و0 إذا فشل " |
| 613 |
"الطلب. يمكن فحص مكدس الأخطاء لتحديد سبب الفشل." |
| 614 |
|
| 615 |
#. type: IX |
| 616 |
#: archlinux debian-trixie debian-unstable |
| 617 |
#, no-wrap |
| 618 |
msgid "EXAMPLES" |
| 619 |
msgstr "أمثلة" |
| 620 |
|
| 621 |
#. type: Plain text |
| 622 |
#: archlinux debian-trixie debian-unstable |
| 623 |
msgid "" |
| 624 |
"The following code sequence realizes an example B<verify_callback> function " |
| 625 |
"that will always continue the TLS/SSL handshake regardless of verification " |
| 626 |
"failure, if wished. The callback realizes a verification depth limit with " |
| 627 |
"more informational output." |
| 628 |
msgstr "" |
| 629 |
"تُحقق سلسلة التعليمات البرمجية التالية مثالاً لدالة B<verify_callback> ستواصل " |
| 630 |
"دائمًا مصافحة TLS/SSL بغض النظر عن فشل التحقق، إذا رُغب. تُحقق الدالة回调 حدًا " |
| 631 |
"لعمق التحقق مع مخرجات معلوماتية أكثر." |
| 632 |
|
| 633 |
#. type: Plain text |
| 634 |
#: archlinux debian-trixie debian-unstable |
| 635 |
msgid "" |
| 636 |
"All verification errors are printed; information about the certificate chain " |
| 637 |
"is printed on request. The example is realized for a server that does allow " |
| 638 |
"but not require client certificates." |
| 639 |
msgstr "" |
| 640 |
"تُطبع جميع أخطاء التحقق؛ وتُطبع معلومات عن سلسلة الشهادات عند الطلب. يُحقق " |
| 641 |
"المثال لخادم يسمح بشهادات العميل لكن لا يطلبها." |
| 642 |
|
| 643 |
#. type: Plain text |
| 644 |
#: archlinux debian-trixie debian-unstable |
| 645 |
msgid "" |
| 646 |
"The example makes use of the ex_data technique to store application data " |
| 647 |
"into/retrieve application data from the SSL structure (see " |
| 648 |
"B<CRYPTO_get_ex_new_index>\\|(3), \\&B<SSL_get_ex_data_X509_STORE_CTX_idx>\\|" |
| 649 |
"(3))." |
| 650 |
msgstr "" |
| 651 |
"يستخدم المثال تقنية ex_data لتخزين بيانات التطبيق في/استرجاع بيانات التطبيق " |
| 652 |
"من بنية SSL (انظر B<CRYPTO_get_ex_new_index>\\|(3)، " |
| 653 |
"\\&B<SSL_get_ex_data_X509_STORE_CTX_idx>\\|(3))." |
| 654 |
|
| 655 |
#. type: Plain text |
| 656 |
#: archlinux debian-trixie debian-unstable |
| 657 |
#, no-wrap |
| 658 |
msgid "" |
| 659 |
"\\& ...\n" |
| 660 |
"\\& typedef struct {\n" |
| 661 |
"\\& int verbose_mode;\n" |
| 662 |
"\\& int verify_depth;\n" |
| 663 |
"\\& int always_continue;\n" |
| 664 |
"\\& } mydata_t;\n" |
| 665 |
"\\& int mydata_index;\n" |
| 666 |
"\\&\n" |
| 667 |
"\\& ...\n" |
| 668 |
"\\& static int verify_callback(int preverify_ok, X509_STORE_CTX *ctx)\n" |
| 669 |
"\\& {\n" |
| 670 |
"\\& char buf[256];\n" |
| 671 |
"\\& X509 *err_cert;\n" |
| 672 |
"\\& int err, depth;\n" |
| 673 |
"\\& SSL *ssl;\n" |
| 674 |
"\\& mydata_t *mydata;\n" |
| 675 |
"\\&\n" |
| 676 |
"\\& err_cert = X509_STORE_CTX_get_current_cert(ctx);\n" |
| 677 |
"\\& err = X509_STORE_CTX_get_error(ctx);\n" |
| 678 |
"\\& depth = X509_STORE_CTX_get_error_depth(ctx);\n" |
| 679 |
"\\&\n" |
| 680 |
"\\& /*\n" |
| 681 |
"\\& * Retrieve the pointer to the SSL of the connection currently treated\n" |
| 682 |
"\\& * and the application specific data stored into the SSL object.\n" |
| 683 |
"\\& */\n" |
| 684 |
"\\& ssl = X509_STORE_CTX_get_ex_data(ctx, SSL_get_ex_data_X509_STORE_CTX_idx());\n" |
| 685 |
"\\& mydata = SSL_get_ex_data(ssl, mydata_index);\n" |
| 686 |
"\\&\n" |
| 687 |
"\\& X509_NAME_oneline(X509_get_subject_name(err_cert), buf, 256);\n" |
| 688 |
"\\&\n" |
| 689 |
"\\& /*\n" |
| 690 |
"\\& * Catch a too long certificate chain. The depth limit set using\n" |
| 691 |
"\\& * SSL_CTX_set_verify_depth() is by purpose set to \"limit+1\" so\n" |
| 692 |
"\\& * that whenever the \"depthE<gt>verify_depth\" condition is met, we\n" |
| 693 |
"\\& * have violated the limit and want to log this error condition.\n" |
| 694 |
"\\& * We must do it here, because the CHAIN_TOO_LONG error would not\n" |
| 695 |
"\\& * be found explicitly; only errors introduced by cutting off the\n" |
| 696 |
"\\& * additional certificates would be logged.\n" |
| 697 |
"\\& */\n" |
| 698 |
"\\& if (depth E<gt> mydata-E<gt>verify_depth) {\n" |
| 699 |
"\\& preverify_ok = 0;\n" |
| 700 |
"\\& err = X509_V_ERR_CERT_CHAIN_TOO_LONG;\n" |
| 701 |
"\\& X509_STORE_CTX_set_error(ctx, err);\n" |
| 702 |
"\\& }\n" |
| 703 |
"\\& if (!preverify_ok) {\n" |
| 704 |
"\\& printf(\"verify error:num=%d:%s:depth=%d:%s\\en\", err,\n" |
| 705 |
"\\& X509_verify_cert_error_string(err), depth, buf);\n" |
| 706 |
"\\& } else if (mydata-E<gt>verbose_mode) {\n" |
| 707 |
"\\& printf(\"depth=%d:%s\\en\", depth, buf);\n" |
| 708 |
"\\& }\n" |
| 709 |
"\\&\n" |
| 710 |
"\\& /*\n" |
| 711 |
"\\& * At this point, err contains the last verification error. We can use\n" |
| 712 |
"\\& * it for something special\n" |
| 713 |
"\\& */\n" |
| 714 |
"\\& if (!preverify_ok && (err == X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT)) {\n" |
| 715 |
"\\& X509_NAME_oneline(X509_get_issuer_name(err_cert), buf, 256);\n" |
| 716 |
"\\& printf(\"issuer= %s\\en\", buf);\n" |
| 717 |
"\\& }\n" |
| 718 |
"\\&\n" |
| 719 |
"\\& if (mydata-E<gt>always_continue)\n" |
| 720 |
"\\& return 1;\n" |
| 721 |
"\\& else\n" |
| 722 |
"\\& return preverify_ok;\n" |
| 723 |
"\\& }\n" |
| 724 |
"\\& ...\n" |
| 725 |
"\\&\n" |
| 726 |
"\\& mydata_t mydata;\n" |
| 727 |
"\\&\n" |
| 728 |
"\\& ...\n" |
| 729 |
"\\& mydata_index = SSL_get_ex_new_index(0, \"mydata index\", NULL, NULL, NULL);\n" |
| 730 |
"\\&\n" |
| 731 |
"\\& ...\n" |
| 732 |
"\\& SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER | SSL_VERIFY_CLIENT_ONCE,\n" |
| 733 |
"\\& verify_callback);\n" |
| 734 |
"\\&\n" |
| 735 |
"\\& /*\n" |
| 736 |
"\\& * Let the verify_callback catch the verify_depth error so that we get\n" |
| 737 |
"\\& * an appropriate error in the logfile.\n" |
| 738 |
"\\& */\n" |
| 739 |
"\\& SSL_CTX_set_verify_depth(verify_depth + 1);\n" |
| 740 |
"\\&\n" |
| 741 |
"\\& /*\n" |
| 742 |
"\\& * Set up the SSL specific data into \"mydata\" and store it into th SSL\n" |
| 743 |
"\\& * structure.\n" |
| 744 |
"\\& */\n" |
| 745 |
"\\& mydata.verify_depth = verify_depth; ...\n" |
| 746 |
"\\& SSL_set_ex_data(ssl, mydata_index, &mydata);\n" |
| 747 |
"\\&\n" |
| 748 |
"\\& ...\n" |
| 749 |
"\\& SSL_accept(ssl); /* check of success left out for clarity */\n" |
| 750 |
"\\& if (peer = SSL_get_peer_certificate(ssl)) {\n" |
| 751 |
"\\& if (SSL_get_verify_result(ssl) == X509_V_OK) {\n" |
| 752 |
"\\& /* The client sent a certificate which verified OK */\n" |
| 753 |
"\\& }\n" |
| 754 |
"\\& }\n" |
| 755 |
msgstr "" |
| 756 |
"\\& ...\n" |
| 757 |
"\\& typedef struct {\n" |
| 758 |
"\\& int verbose_mode;\n" |
| 759 |
"\\& int verify_depth;\n" |
| 760 |
"\\& int always_continue;\n" |
| 761 |
"\\& } mydata_t;\n" |
| 762 |
"\\& int mydata_index;\n" |
| 763 |
"\\&\n" |
| 764 |
"\\& ...\n" |
| 765 |
"\\& static int verify_callback(int preverify_ok, X509_STORE_CTX *ctx)\n" |
| 766 |
"\\& {\n" |
| 767 |
"\\& char buf[256];\n" |
| 768 |
"\\& X509 *err_cert;\n" |
| 769 |
"\\& int err, depth;\n" |
| 770 |
"\\& SSL *ssl;\n" |
| 771 |
"\\& mydata_t *mydata;\n" |
| 772 |
"\\&\n" |
| 773 |
"\\& err_cert = X509_STORE_CTX_get_current_cert(ctx);\n" |
| 774 |
"\\& err = X509_STORE_CTX_get_error(ctx);\n" |
| 775 |
"\\& depth = X509_STORE_CTX_get_error_depth(ctx);\n" |
| 776 |
"\\&\n" |
| 777 |
"\\& /*\n" |
| 778 |
"\\& * Retrieve the pointer to the SSL of the connection currently treated\n" |
| 779 |
"\\& * and the application specific data stored into the SSL object.\n" |
| 780 |
"\\& */\n" |
| 781 |
"\\& ssl = X509_STORE_CTX_get_ex_data(ctx, SSL_get_ex_data_X509_STORE_CTX_idx());\n" |
| 782 |
"\\& mydata = SSL_get_ex_data(ssl, mydata_index);\n" |
| 783 |
"\\&\n" |
| 784 |
"\\& X509_NAME_oneline(X509_get_subject_name(err_cert), buf, 256);\n" |
| 785 |
"\\&\n" |
| 786 |
"\\& /*\n" |
| 787 |
"\\& * Catch a too long certificate chain. The depth limit set using\n" |
| 788 |
"\\& * SSL_CTX_set_verify_depth() is by purpose set to \"limit+1\" so\n" |
| 789 |
"\\& * that whenever the \"depthE<gt>verify_depth\" condition is met, we\n" |
| 790 |
"\\& * have violated the limit and want to log this error condition.\n" |
| 791 |
"\\& * We must do it here, because the CHAIN_TOO_LONG error would not\n" |
| 792 |
"\\& * be found explicitly; only errors introduced by cutting off the\n" |
| 793 |
"\\& * additional certificates would be logged.\n" |
| 794 |
"\\& */\n" |
| 795 |
"\\& if (depth E<gt> mydata-E<gt>verify_depth) {\n" |
| 796 |
"\\& preverify_ok = 0;\n" |
| 797 |
"\\& err = X509_V_ERR_CERT_CHAIN_TOO_LONG;\n" |
| 798 |
"\\& X509_STORE_CTX_set_error(ctx, err);\n" |
| 799 |
"\\& }\n" |
| 800 |
"\\& if (!preverify_ok) {\n" |
| 801 |
"\\& printf(\"verify error:num=%d:%s:depth=%d:%s\\en\", err,\n" |
| 802 |
"\\& X509_verify_cert_error_string(err), depth, buf);\n" |
| 803 |
"\\& } else if (mydata-E<gt>verbose_mode) {\n" |
| 804 |
"\\& printf(\"depth=%d:%s\\en\", depth, buf);\n" |
| 805 |
"\\& }\n" |
| 806 |
"\\&\n" |
| 807 |
"\\& /*\n" |
| 808 |
"\\& * At this point, err contains the last verification error. We can use\n" |
| 809 |
"\\& * it for something special\n" |
| 810 |
"\\& */\n" |
| 811 |
"\\& if (!preverify_ok && (err == X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT)) {\n" |
| 812 |
"\\& X509_NAME_oneline(X509_get_issuer_name(err_cert), buf, 256);\n" |
| 813 |
"\\& printf(\"issuer= %s\\en\", buf);\n" |
| 814 |
"\\& }\n" |
| 815 |
"\\&\n" |
| 816 |
"\\& if (mydata-E<gt>always_continue)\n" |
| 817 |
"\\& return 1;\n" |
| 818 |
"\\& else\n" |
| 819 |
"\\& return preverify_ok;\n" |
| 820 |
"\\& }\n" |
| 821 |
"\\& ...\n" |
| 822 |
"\\&\n" |
| 823 |
"\\& mydata_t mydata;\n" |
| 824 |
"\\&\n" |
| 825 |
"\\& ...\n" |
| 826 |
"\\& mydata_index = SSL_get_ex_new_index(0, \"mydata index\", NULL, NULL, NULL);\n" |
| 827 |
"\\&\n" |
| 828 |
"\\& ...\n" |
| 829 |
"\\& SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER | SSL_VERIFY_CLIENT_ONCE,\n" |
| 830 |
"\\& verify_callback);\n" |
| 831 |
"\\&\n" |
| 832 |
"\\& /*\n" |
| 833 |
"\\& * Let the verify_callback catch the verify_depth error so that we get\n" |
| 834 |
"\\& * an appropriate error in the logfile.\n" |
| 835 |
"\\& */\n" |
| 836 |
"\\& SSL_CTX_set_verify_depth(verify_depth + 1);\n" |
| 837 |
"\\&\n" |
| 838 |
"\\& /*\n" |
| 839 |
"\\& * Set up the SSL specific data into \"mydata\" and store it into th SSL\n" |
| 840 |
"\\& * structure.\n" |
| 841 |
"\\& */\n" |
| 842 |
"\\& mydata.verify_depth = verify_depth; ...\n" |
| 843 |
"\\& SSL_set_ex_data(ssl, mydata_index, &mydata);\n" |
| 844 |
"\\&\n" |
| 845 |
"\\& ...\n" |
| 846 |
"\\& SSL_accept(ssl); /* check of success left out for clarity */\n" |
| 847 |
"\\& if (peer = SSL_get_peer_certificate(ssl)) {\n" |
| 848 |
"\\& if (SSL_get_verify_result(ssl) == X509_V_OK) {\n" |
| 849 |
"\\& /* The client sent a certificate which verified OK */\n" |
| 850 |
"\\& }\n" |
| 851 |
"\\& }\n" |
| 852 |
|
| 853 |
#. type: IX |
| 854 |
#: archlinux debian-trixie debian-unstable |
| 855 |
#, no-wrap |
| 856 |
msgid "SEE ALSO" |
| 857 |
msgstr "انظر أيضًا" |
| 858 |
|
| 859 |
#. type: Plain text |
| 860 |
#: archlinux debian-trixie debian-unstable |
| 861 |
msgid "" |
| 862 |
"\\&B<ssl>\\|(7), B<SSL_new>\\|(3), \\&B<SSL_CTX_get_verify_mode>\\|(3), " |
| 863 |
"\\&B<SSL_get_verify_result>\\|(3), \\&B<SSL_CTX_load_verify_locations>\\|" |
| 864 |
"(3), \\&B<SSL_get_peer_certificate>\\|(3), " |
| 865 |
"\\&B<SSL_CTX_set_cert_verify_callback>\\|(3), " |
| 866 |
"\\&B<SSL_get_ex_data_X509_STORE_CTX_idx>\\|(3), " |
| 867 |
"\\&B<SSL_CTX_set_client_cert_cb>\\|(3), \\&B<CRYPTO_get_ex_new_index>\\|(3)" |
| 868 |
msgstr "" |
| 869 |
"\\&B<ssl>\\|(7)، B<SSL_new>\\|(3)، \\&B<SSL_CTX_get_verify_mode>\\|(3)، " |
| 870 |
"\\&B<SSL_get_verify_result>\\|(3)، \\&B<SSL_CTX_load_verify_locations>\\|" |
| 871 |
"(3)، \\&B<SSL_get_peer_certificate>\\|(3)، " |
| 872 |
"\\&B<SSL_CTX_set_cert_verify_callback>\\|(3)، " |
| 873 |
"\\&B<SSL_get_ex_data_X509_STORE_CTX_idx>\\|(3)، " |
| 874 |
"\\&B<SSL_CTX_set_client_cert_cb>\\|(3)، \\&B<CRYPTO_get_ex_new_index>\\|(3)" |
| 875 |
|
| 876 |
#. type: IX |
| 877 |
#: archlinux debian-trixie debian-unstable |
| 878 |
#, no-wrap |
| 879 |
msgid "HISTORY" |
| 880 |
msgstr "التاريخ" |
| 881 |
|
| 882 |
#. type: Plain text |
| 883 |
#: archlinux debian-trixie debian-unstable |
| 884 |
msgid "" |
| 885 |
"The SSL_VERIFY_POST_HANDSHAKE option, and the " |
| 886 |
"B<SSL_verify_client_post_handshake()> and B<SSL_set_post_handshake_auth()> " |
| 887 |
"functions were added in OpenSSL 1.1.1." |
| 888 |
msgstr "" |
| 889 |
"خيار SSL_VERIFY_POST_HANDSHAKE، والدالتان " |
| 890 |
"B<SSL_verify_client_post_handshake()> و B<SSL_set_post_handshake_auth()> " |
| 891 |
"أُضيفتا في OpenSSL 1.1.1." |
| 892 |
|
| 893 |
#. type: IX |
| 894 |
#: archlinux debian-trixie debian-unstable |
| 895 |
#, no-wrap |
| 896 |
msgid "COPYRIGHT" |
| 897 |
msgstr "حقوق النسخ" |
| 898 |
|
| 899 |
#. type: Plain text |
| 900 |
#: archlinux debian-trixie debian-unstable |
| 901 |
msgid "Copyright 2000-2024 The OpenSSL Project Authors. All Rights Reserved." |
| 902 |
msgstr "حقوق النشر 2000-2024 لمؤلفي مشروع OpenSSL. جميع الحقوق محفوظة." |
| 903 |
|
| 904 |
#. type: Plain text |
| 905 |
#: archlinux debian-trixie debian-unstable |
| 906 |
msgid "" |
| 907 |
"Licensed under the Apache License 2.0 (the \"License\"). You may not use " |
| 908 |
"this file except in compliance with the License. You can obtain a copy in " |
| 909 |
"the file LICENSE in the source distribution or at E<lt>https://www.openssl." |
| 910 |
"org/source/license.htmlE<gt>." |
| 911 |
msgstr "" |
| 912 |
"مرخص بموجب رخصة Apache 2.0 (المشار إليها فيما يلي بـ ”الرخصة“). لا يجوز لك " |
| 913 |
"استخدام هذا الملف إلا وفقًا لشروط الرخصة. يمكنك الحصول على نسخة منها في " |
| 914 |
"الملف LICENSE الموجود في حزمة التوزيع المصدرية أو على الرابط E<lt>https://" |
| 915 |
"www.openssl.org/source/license.htmlE<gt>." |
| 916 |
|
| 917 |
#. ======================================================================== |
| 918 |
#. type: IX |
| 919 |
#: debian-trixie debian-unstable |
| 920 |
#, no-wrap |
| 921 |
msgid "SSL_CTX_SET_VERIFY 3SSL" |
| 922 |
msgstr "SSL_CTX_SET_VERIFY 3SSL" |
| 923 |
|
| 924 |
#. type: TH |
| 925 |
#: debian-trixie |
| 926 |
#, no-wrap |
| 927 |
msgid "3.5.6" |
| 928 |
msgstr "3.5.6" |
| 929 |
|
| 930 |
#. type: Plain text |
| 931 |
#: debian-trixie debian-unstable |
| 932 |
msgid "" |
| 933 |
"The verification of certificates can be controlled by a set of logically " |
| 934 |
"or'ed B<mode> flags:" |
| 935 |
msgstr "" |
| 936 |
"يمكن التحكم في التحقق من الشهادات بواسطة مجموعة من أعلام B<mode> المربوطة " |
| 937 |
"منطقيًا بـ OR:" |
| 938 |
|
| 939 |
#. type: Plain text |
| 940 |
#: debian-trixie debian-unstable |
| 941 |
msgid "" |
| 942 |
"The certificate chain is checked starting with the deepest nesting level " |
| 943 |
"(the root CA certificate) and worked upward to the peer's certificate. At " |
| 944 |
"each level signatures and issuer attributes are checked. Whenever a " |
| 945 |
"verification error is found, the error number is stored in B<x509_ctx> and " |
| 946 |
"B<verify_callback> is called with B<preverify_ok>=0. By applying " |
| 947 |
"X509_CTX_store_* functions B<verify_callback> can locate the certificate in " |
| 948 |
"question and perform additional steps (see EXAMPLES). If no error is found " |
| 949 |
"for a certificate, B<verify_callback> is called with B<preverify_ok>=1 " |
| 950 |
"before advancing to the next level." |
| 951 |
msgstr "" |
| 952 |
"تُفحص سلسلة الشهادات بدءًا من أعمق مستوى تداخل (شهادة CA الجذرية) وتتجه صعودًا " |
| 953 |
"إلى شهادة النظير. في كل مستوى، تُفحص التوقيعات وسمات المُصدر. كلما وُجد خطأ " |
| 954 |
"تحقق، يُخزن رقم الخطأ في B<x509_ctx> وتُستدعى B<verify_callback> مع " |
| 955 |
"B<preverify_ok>=0. بتطبيق دوال X509_CTX_store_*، يمكن لـ B<verify_callback> " |
| 956 |
"تحديد موقع الشهادة المعنية وتنفيذ خطوات إضافية (انظر الأمثلة). إذا لم يُعثر " |
| 957 |
"على خطأ لشهادة، تُستدعى B<verify_callback> مع B<preverify_ok>=1 قبل التقدم " |
| 958 |
"إلى المستوى التالي." |