Commit e2b3d1321bc264d72d0cc2b12cfbd78891cef5eb
1 parent
7ddc463f
Exists in
master
and in
1 other branch
Using X509 error macros as message name to allow internet searching.
Showing
1 changed file
with
31 additions
and
3 deletions
Show diff stats
src/network_modules/openssl/messages.c
@@ -46,6 +46,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | @@ -46,6 +46,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | ||
46 | { | 46 | { |
47 | .id = X509_V_OK, | 47 | .id = X509_V_OK, |
48 | .message = { | 48 | .message = { |
49 | + .name = "X509_V_OK", | ||
49 | .type = LIB3270_NOTIFY_INFO, | 50 | .type = LIB3270_NOTIFY_INFO, |
50 | .icon = "security-high", | 51 | .icon = "security-high", |
51 | .summary = N_( "Secure connection was successful." ), | 52 | .summary = N_( "Secure connection was successful." ), |
@@ -56,6 +57,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | @@ -56,6 +57,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | ||
56 | { | 57 | { |
57 | .id = X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT, | 58 | .id = X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT, |
58 | .message = { | 59 | .message = { |
60 | + .name = "X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT", | ||
59 | .type = LIB3270_NOTIFY_SECURE, | 61 | .type = LIB3270_NOTIFY_SECURE, |
60 | .icon = "dialog-error", | 62 | .icon = "dialog-error", |
61 | .summary = N_( "Unable to get issuer certificate" ), | 63 | .summary = N_( "Unable to get issuer certificate" ), |
@@ -66,12 +68,12 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | @@ -66,12 +68,12 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | ||
66 | { | 68 | { |
67 | .id = X509_V_ERR_UNABLE_TO_GET_CRL, | 69 | .id = X509_V_ERR_UNABLE_TO_GET_CRL, |
68 | .message = { | 70 | .message = { |
71 | + .name = "X509_V_ERR_UNABLE_TO_GET_CRL", | ||
69 | #ifdef SSL_ENABLE_CRL_CHECK | 72 | #ifdef SSL_ENABLE_CRL_CHECK |
70 | .type = LIB3270_NOTIFY_SECURE, | 73 | .type = LIB3270_NOTIFY_SECURE, |
71 | #else | 74 | #else |
72 | .type = LIB3270_NOTIFY_INFO, | 75 | .type = LIB3270_NOTIFY_INFO, |
73 | #endif // SSL_ENABLE_CRL_CHECK | 76 | #endif // SSL_ENABLE_CRL_CHECK |
74 | - .name = "X509UnableToGetCRL", | ||
75 | .icon = "security-low", | 77 | .icon = "security-low", |
76 | .summary = N_( "Unable to get certificate CRL." ), | 78 | .summary = N_( "Unable to get certificate CRL." ), |
77 | .body = N_( "The Certificate revocation list (CRL) of a certificate could not be found." ), | 79 | .body = N_( "The Certificate revocation list (CRL) of a certificate could not be found." ), |
@@ -82,6 +84,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | @@ -82,6 +84,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | ||
82 | { | 84 | { |
83 | .id = X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE, | 85 | .id = X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE, |
84 | .message = { | 86 | .message = { |
87 | + .name = "X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE", | ||
85 | .type = LIB3270_NOTIFY_SECURE, | 88 | .type = LIB3270_NOTIFY_SECURE, |
86 | .icon = "dialog-error", | 89 | .icon = "dialog-error", |
87 | .summary = N_( "Unable to decrypt certificate's signature" ), | 90 | .summary = N_( "Unable to decrypt certificate's signature" ), |
@@ -92,6 +95,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | @@ -92,6 +95,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | ||
92 | { | 95 | { |
93 | .id = X509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE, | 96 | .id = X509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE, |
94 | .message = { | 97 | .message = { |
98 | + .name = "X509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE", | ||
95 | .type = LIB3270_NOTIFY_SECURE, | 99 | .type = LIB3270_NOTIFY_SECURE, |
96 | .icon = "dialog-error", | 100 | .icon = "dialog-error", |
97 | .summary = N_( "Unable to decrypt CRL's signature" ), | 101 | .summary = N_( "Unable to decrypt CRL's signature" ), |
@@ -102,6 +106,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | @@ -102,6 +106,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | ||
102 | { | 106 | { |
103 | .id = X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY, | 107 | .id = X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY, |
104 | .message = { | 108 | .message = { |
109 | + .name = "X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY", | ||
105 | .type = LIB3270_NOTIFY_SECURE, | 110 | .type = LIB3270_NOTIFY_SECURE, |
106 | .icon = "dialog-error", | 111 | .icon = "dialog-error", |
107 | .summary = N_( "Unable to decode issuer public key" ), | 112 | .summary = N_( "Unable to decode issuer public key" ), |
@@ -112,6 +117,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | @@ -112,6 +117,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | ||
112 | { | 117 | { |
113 | .id = X509_V_ERR_CERT_SIGNATURE_FAILURE, | 118 | .id = X509_V_ERR_CERT_SIGNATURE_FAILURE, |
114 | .message = { | 119 | .message = { |
120 | + .name = "X509_V_ERR_CERT_SIGNATURE_FAILURE", | ||
115 | .type = LIB3270_NOTIFY_SECURE, | 121 | .type = LIB3270_NOTIFY_SECURE, |
116 | .icon = "dialog-error", | 122 | .icon = "dialog-error", |
117 | .summary = N_( "Certificate signature failure" ), | 123 | .summary = N_( "Certificate signature failure" ), |
@@ -122,6 +128,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | @@ -122,6 +128,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | ||
122 | { | 128 | { |
123 | .id = X509_V_ERR_CRL_SIGNATURE_FAILURE, | 129 | .id = X509_V_ERR_CRL_SIGNATURE_FAILURE, |
124 | .message = { | 130 | .message = { |
131 | + .name = "X509_V_ERR_CRL_SIGNATURE_FAILURE", | ||
125 | .type = LIB3270_NOTIFY_SECURE, | 132 | .type = LIB3270_NOTIFY_SECURE, |
126 | .icon = "dialog-error", | 133 | .icon = "dialog-error", |
127 | .summary = N_( "CRL signature failure" ), | 134 | .summary = N_( "CRL signature failure" ), |
@@ -132,6 +139,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | @@ -132,6 +139,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | ||
132 | { | 139 | { |
133 | .id = X509_V_ERR_CERT_NOT_YET_VALID, | 140 | .id = X509_V_ERR_CERT_NOT_YET_VALID, |
134 | .message = { | 141 | .message = { |
142 | + .name = "X509_V_ERR_CERT_NOT_YET_VALID", | ||
135 | .type = LIB3270_NOTIFY_WARNING, | 143 | .type = LIB3270_NOTIFY_WARNING, |
136 | .icon = "security-medium", | 144 | .icon = "security-medium", |
137 | .summary = N_( "Certificate is not yet valid" ), | 145 | .summary = N_( "Certificate is not yet valid" ), |
@@ -142,6 +150,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | @@ -142,6 +150,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | ||
142 | { | 150 | { |
143 | .id = X509_V_ERR_CERT_HAS_EXPIRED, | 151 | .id = X509_V_ERR_CERT_HAS_EXPIRED, |
144 | .message = { | 152 | .message = { |
153 | + .name = "X509_V_ERR_CERT_HAS_EXPIRED", | ||
145 | .type = LIB3270_NOTIFY_SECURE, | 154 | .type = LIB3270_NOTIFY_SECURE, |
146 | .icon = "security-medium", | 155 | .icon = "security-medium", |
147 | .summary = N_( "Certificate has expired" ), | 156 | .summary = N_( "Certificate has expired" ), |
@@ -152,6 +161,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | @@ -152,6 +161,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | ||
152 | { | 161 | { |
153 | .id = X509_V_ERR_CRL_NOT_YET_VALID, | 162 | .id = X509_V_ERR_CRL_NOT_YET_VALID, |
154 | .message = { | 163 | .message = { |
164 | + .name = "X509_V_ERR_CRL_NOT_YET_VALID", | ||
155 | .type = LIB3270_NOTIFY_WARNING, | 165 | .type = LIB3270_NOTIFY_WARNING, |
156 | .icon = "security-medium", | 166 | .icon = "security-medium", |
157 | .summary = N_( "The CRL is not yet valid." ), | 167 | .summary = N_( "The CRL is not yet valid." ), |
@@ -162,6 +172,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | @@ -162,6 +172,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | ||
162 | { | 172 | { |
163 | .id = X509_V_ERR_CRL_HAS_EXPIRED, | 173 | .id = X509_V_ERR_CRL_HAS_EXPIRED, |
164 | .message = { | 174 | .message = { |
175 | + .name = "X509_V_ERR_CRL_HAS_EXPIRED", | ||
165 | #ifdef SSL_ENABLE_CRL_EXPIRATION_CHECK | 176 | #ifdef SSL_ENABLE_CRL_EXPIRATION_CHECK |
166 | .type = LIB3270_NOTIFY_SECURE, | 177 | .type = LIB3270_NOTIFY_SECURE, |
167 | #else | 178 | #else |
@@ -176,6 +187,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | @@ -176,6 +187,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | ||
176 | { | 187 | { |
177 | .id = X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD, | 188 | .id = X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD, |
178 | .message = { | 189 | .message = { |
190 | + .name = "X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD", | ||
179 | .type = LIB3270_NOTIFY_SECURE, | 191 | .type = LIB3270_NOTIFY_SECURE, |
180 | .icon = "dialog-error", | 192 | .icon = "dialog-error", |
181 | .summary = N_( "Format error in certificate's notBefore field" ), | 193 | .summary = N_( "Format error in certificate's notBefore field" ), |
@@ -186,6 +198,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | @@ -186,6 +198,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | ||
186 | { | 198 | { |
187 | .id = X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD, | 199 | .id = X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD, |
188 | .message = { | 200 | .message = { |
201 | + .name = "X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD", | ||
189 | .type = LIB3270_NOTIFY_SECURE, | 202 | .type = LIB3270_NOTIFY_SECURE, |
190 | .icon = "dialog-error", | 203 | .icon = "dialog-error", |
191 | .summary = N_( "Format error in certificate's notAfter field" ), | 204 | .summary = N_( "Format error in certificate's notAfter field" ), |
@@ -196,6 +209,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | @@ -196,6 +209,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | ||
196 | { | 209 | { |
197 | .id = X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD, | 210 | .id = X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD, |
198 | .message = { | 211 | .message = { |
212 | + .name = "X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD", | ||
199 | .type = LIB3270_NOTIFY_SECURE, | 213 | .type = LIB3270_NOTIFY_SECURE, |
200 | .icon = "dialog-error", | 214 | .icon = "dialog-error", |
201 | .summary = N_( "Format error in CRL's lastUpdate field" ), | 215 | .summary = N_( "Format error in CRL's lastUpdate field" ), |
@@ -206,6 +220,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | @@ -206,6 +220,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | ||
206 | { | 220 | { |
207 | .id = X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD, | 221 | .id = X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD, |
208 | .message = { | 222 | .message = { |
223 | + .name = "X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD", | ||
209 | .type = LIB3270_NOTIFY_SECURE, | 224 | .type = LIB3270_NOTIFY_SECURE, |
210 | .icon = "dialog-error", | 225 | .icon = "dialog-error", |
211 | .summary = N_( "Format error in CRL's nextUpdate field" ), | 226 | .summary = N_( "Format error in CRL's nextUpdate field" ), |
@@ -216,6 +231,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | @@ -216,6 +231,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | ||
216 | { | 231 | { |
217 | .id = X509_V_ERR_OUT_OF_MEM, | 232 | .id = X509_V_ERR_OUT_OF_MEM, |
218 | .message = { | 233 | .message = { |
234 | + .name = "X509_V_ERR_OUT_OF_MEM", | ||
219 | .type = LIB3270_NOTIFY_ERROR, | 235 | .type = LIB3270_NOTIFY_ERROR, |
220 | .icon = "dialog-error", | 236 | .icon = "dialog-error", |
221 | .summary = N_( "Out of memory" ), | 237 | .summary = N_( "Out of memory" ), |
@@ -226,6 +242,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | @@ -226,6 +242,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | ||
226 | { | 242 | { |
227 | .id = X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT, | 243 | .id = X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT, |
228 | .message = { | 244 | .message = { |
245 | + .name = "X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT", | ||
229 | #ifdef SSL_ENABLE_SELF_SIGNED_CERT_CHECK | 246 | #ifdef SSL_ENABLE_SELF_SIGNED_CERT_CHECK |
230 | .type = LIB3270_NOTIFY_SECURE, | 247 | .type = LIB3270_NOTIFY_SECURE, |
231 | #else | 248 | #else |
@@ -233,7 +250,6 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | @@ -233,7 +250,6 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | ||
233 | #endif // SSL_ENABLE_SELF_SIGNED_CERT_CHECK | 250 | #endif // SSL_ENABLE_SELF_SIGNED_CERT_CHECK |
234 | .icon = "security-medium", | 251 | .icon = "security-medium", |
235 | .summary = N_( "Self signed certificate" ), | 252 | .summary = N_( "Self signed certificate" ), |
236 | - .name = "X509DepthZeroSelfSignedCert", | ||
237 | .label = N_( "Continue" ), | 253 | .label = N_( "Continue" ), |
238 | .body = N_( "The passed certificate is self signed and the same certificate cannot be found in the list of trusted certificates." ) | 254 | .body = N_( "The passed certificate is self signed and the same certificate cannot be found in the list of trusted certificates." ) |
239 | } | 255 | } |
@@ -242,12 +258,12 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | @@ -242,12 +258,12 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | ||
242 | { | 258 | { |
243 | .id = X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN, | 259 | .id = X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN, |
244 | .message = { | 260 | .message = { |
261 | + .name = "X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN", | ||
245 | #ifdef SSL_ENABLE_SELF_SIGNED_CERT_CHECK | 262 | #ifdef SSL_ENABLE_SELF_SIGNED_CERT_CHECK |
246 | .type = LIB3270_NOTIFY_SECURE, | 263 | .type = LIB3270_NOTIFY_SECURE, |
247 | #else | 264 | #else |
248 | .type = LIB3270_NOTIFY_INFO, | 265 | .type = LIB3270_NOTIFY_INFO, |
249 | #endif // SSL_ENABLE_SELF_SIGNED_CERT_CHECK | 266 | #endif // SSL_ENABLE_SELF_SIGNED_CERT_CHECK |
250 | - .name = "SelfSignedCertInChain", | ||
251 | .icon = "security-low", | 267 | .icon = "security-low", |
252 | .label = N_("Continue"), | 268 | .label = N_("Continue"), |
253 | .summary = N_( "Self signed certificate in certificate chain" ), | 269 | .summary = N_( "Self signed certificate in certificate chain" ), |
@@ -258,6 +274,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | @@ -258,6 +274,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | ||
258 | { | 274 | { |
259 | .id = X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY, | 275 | .id = X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY, |
260 | .message = { | 276 | .message = { |
277 | + .name = "X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY", | ||
261 | .type = LIB3270_NOTIFY_WARNING, | 278 | .type = LIB3270_NOTIFY_WARNING, |
262 | .icon = "security-low", | 279 | .icon = "security-low", |
263 | .summary = N_( "Unable to get local issuer certificate" ), | 280 | .summary = N_( "Unable to get local issuer certificate" ), |
@@ -268,6 +285,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | @@ -268,6 +285,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | ||
268 | { | 285 | { |
269 | .id = X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE, | 286 | .id = X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE, |
270 | .message = { | 287 | .message = { |
288 | + .name = "X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE", | ||
271 | .type = LIB3270_NOTIFY_SECURE, | 289 | .type = LIB3270_NOTIFY_SECURE, |
272 | .icon = "security-low", | 290 | .icon = "security-low", |
273 | .summary = N_( "Unable to verify the first certificate" ), | 291 | .summary = N_( "Unable to verify the first certificate" ), |
@@ -278,6 +296,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | @@ -278,6 +296,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | ||
278 | { | 296 | { |
279 | .id = X509_V_ERR_CERT_REVOKED, | 297 | .id = X509_V_ERR_CERT_REVOKED, |
280 | .message = { | 298 | .message = { |
299 | + .name = "X509_V_ERR_CERT_REVOKED", | ||
281 | .type = LIB3270_NOTIFY_SECURE, | 300 | .type = LIB3270_NOTIFY_SECURE, |
282 | .icon = "security-low", | 301 | .icon = "security-low", |
283 | .summary = N_( "Certificate revoked" ), | 302 | .summary = N_( "Certificate revoked" ), |
@@ -288,6 +307,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | @@ -288,6 +307,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | ||
288 | { | 307 | { |
289 | .id = X509_V_ERR_INVALID_CA, | 308 | .id = X509_V_ERR_INVALID_CA, |
290 | .message = { | 309 | .message = { |
310 | + .name = "X509_V_ERR_INVALID_CA", | ||
291 | .type = LIB3270_NOTIFY_SECURE, | 311 | .type = LIB3270_NOTIFY_SECURE, |
292 | .icon = "security-low", | 312 | .icon = "security-low", |
293 | .summary = N_( "Invalid CA certificate" ), | 313 | .summary = N_( "Invalid CA certificate" ), |
@@ -298,6 +318,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | @@ -298,6 +318,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | ||
298 | { | 318 | { |
299 | .id = X509_V_ERR_PATH_LENGTH_EXCEEDED, | 319 | .id = X509_V_ERR_PATH_LENGTH_EXCEEDED, |
300 | .message = { | 320 | .message = { |
321 | + .name = "X509_V_ERR_PATH_LENGTH_EXCEEDED", | ||
301 | .type = LIB3270_NOTIFY_SECURE, | 322 | .type = LIB3270_NOTIFY_SECURE, |
302 | .icon = "dialog-error", | 323 | .icon = "dialog-error", |
303 | .summary = N_( "Path length constraint exceeded" ), | 324 | .summary = N_( "Path length constraint exceeded" ), |
@@ -308,6 +329,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | @@ -308,6 +329,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | ||
308 | { | 329 | { |
309 | .id = X509_V_ERR_INVALID_PURPOSE, | 330 | .id = X509_V_ERR_INVALID_PURPOSE, |
310 | .message = { | 331 | .message = { |
332 | + .name = "X509_V_ERR_INVALID_PURPOSE", | ||
311 | .type = LIB3270_NOTIFY_SECURE, | 333 | .type = LIB3270_NOTIFY_SECURE, |
312 | .icon = "dialog-error", | 334 | .icon = "dialog-error", |
313 | .summary = N_( "Unsupported certificate purpose" ), | 335 | .summary = N_( "Unsupported certificate purpose" ), |
@@ -318,6 +340,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | @@ -318,6 +340,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | ||
318 | { | 340 | { |
319 | .id = X509_V_ERR_CERT_UNTRUSTED, | 341 | .id = X509_V_ERR_CERT_UNTRUSTED, |
320 | .message = { | 342 | .message = { |
343 | + .name = "X509_V_ERR_CERT_UNTRUSTED", | ||
321 | .type = LIB3270_NOTIFY_WARNING, | 344 | .type = LIB3270_NOTIFY_WARNING, |
322 | .icon = "security-low", | 345 | .icon = "security-low", |
323 | .summary = N_( "Certificate not trusted" ), | 346 | .summary = N_( "Certificate not trusted" ), |
@@ -328,6 +351,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | @@ -328,6 +351,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | ||
328 | { | 351 | { |
329 | .id = X509_V_ERR_CERT_REJECTED, | 352 | .id = X509_V_ERR_CERT_REJECTED, |
330 | .message = { | 353 | .message = { |
354 | + .name = "X509_V_ERR_CERT_REJECTED", | ||
331 | .type = LIB3270_NOTIFY_SECURE, | 355 | .type = LIB3270_NOTIFY_SECURE, |
332 | .icon = "security-low", | 356 | .icon = "security-low", |
333 | .summary = N_( "Certificate rejected" ), | 357 | .summary = N_( "Certificate rejected" ), |
@@ -338,6 +362,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | @@ -338,6 +362,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | ||
338 | { | 362 | { |
339 | .id = X509_V_ERR_SUBJECT_ISSUER_MISMATCH, | 363 | .id = X509_V_ERR_SUBJECT_ISSUER_MISMATCH, |
340 | .message = { | 364 | .message = { |
365 | + .name = "X509_V_ERR_SUBJECT_ISSUER_MISMATCH", | ||
341 | .type = LIB3270_NOTIFY_SECURE, | 366 | .type = LIB3270_NOTIFY_SECURE, |
342 | .icon = "security-low", | 367 | .icon = "security-low", |
343 | .summary = N_( "Subject issuer mismatch" ), | 368 | .summary = N_( "Subject issuer mismatch" ), |
@@ -348,6 +373,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | @@ -348,6 +373,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | ||
348 | { | 373 | { |
349 | .id = X509_V_ERR_AKID_SKID_MISMATCH, | 374 | .id = X509_V_ERR_AKID_SKID_MISMATCH, |
350 | .message = { | 375 | .message = { |
376 | + .name = "X509_V_ERR_AKID_SKID_MISMATCH", | ||
351 | .type = LIB3270_NOTIFY_SECURE, | 377 | .type = LIB3270_NOTIFY_SECURE, |
352 | .icon = "dialog-error", | 378 | .icon = "dialog-error", |
353 | .summary = N_( "Authority and subject key identifier mismatch" ), | 379 | .summary = N_( "Authority and subject key identifier mismatch" ), |
@@ -358,6 +384,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | @@ -358,6 +384,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | ||
358 | { | 384 | { |
359 | .id = X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH, | 385 | .id = X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH, |
360 | .message = { | 386 | .message = { |
387 | + .name = "X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH", | ||
361 | .type = LIB3270_NOTIFY_SECURE, | 388 | .type = LIB3270_NOTIFY_SECURE, |
362 | .icon = "dialog-error", | 389 | .icon = "dialog-error", |
363 | .summary = N_( "Authority and issuer serial number mismatch" ), | 390 | .summary = N_( "Authority and issuer serial number mismatch" ), |
@@ -368,6 +395,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | @@ -368,6 +395,7 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { | ||
368 | { | 395 | { |
369 | .id = X509_V_ERR_KEYUSAGE_NO_CERTSIGN, | 396 | .id = X509_V_ERR_KEYUSAGE_NO_CERTSIGN, |
370 | .message = { | 397 | .message = { |
398 | + .name = "X509_V_ERR_KEYUSAGE_NO_CERTSIGN", | ||
371 | .type = LIB3270_NOTIFY_SECURE, | 399 | .type = LIB3270_NOTIFY_SECURE, |
372 | .icon = "dialog-error", | 400 | .icon = "dialog-error", |
373 | .summary = N_( "Key usage does not include certificate signing" ), | 401 | .summary = N_( "Key usage does not include certificate signing" ), |