summary refs log tree commit diff stats
path: root/lib/wrappers
Commit message (Collapse)AuthorAgeFilesLines
* fixes #3748 (#20563)Andreas Rumpf2022-10-141-2/+5
| | | | | | | | | * fixes #3748 * fix the regression * don't use the new allocator for the SSL wrapper * fixes regression
* 'lock levels' are deprecated, now a noop (#20539)ringabout2022-10-111-1/+1
| | | | | * 'lock levels' are deprecated, now a noop * fixes tests
* move widestrs out of system (#20462)metagn2022-10-011-0/+3
| | | | | * move widestrs out of system * fix osproc
* fixes postgres with `nimPreviewSlimSystem` (#20455)ringabout2022-09-291-0/+4
|
* make more standard libraries work with `nimPreviewSlimSystem` (#20343)ringabout2022-09-271-0/+3
| | | | | | | | | | | | | | | | | | | | | | | * make more standard libraries work with `nimPreviewSlimSystem` * typo * part two * Delete specutils.nim * fixes more tests * more fixes * fixes tests * fixes three more tests * add formatfloat import * fix * last
* partial revert and redesign of #19814, changelog (#20341)metagn2022-09-141-5/+26
| | | | | | | | | | | | | | | * conservative partial revert of #19814 * fix * revert tssl * revert azure CI change * keep azure, revert version range * fully revert CI, add changelog * useOpenssl3 as separate define, .3 is a version
* SSL: Allow the same range of versions for OSX (#20324)Andreas Rumpf2022-09-101-5/+1
|
* Add OpenSSL 3 support (#19814)Federico Ceratto2022-08-231-80/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Minor refactor * Add OpenSSL 3 support Remove symbols noOpenSSLHacksq and openssl10 * Drop loading of older openssl versions * Add library path * Use only versioned libssl soname os OSX * Update .github/workflows/ci_packages.yml Co-authored-by: Hein Thant <official.heinthanth@gmail.com> * On Mac OS X CI, link OpenSSL in /usr/local/lib/ * Install OpenSSL on Mac OS X on azure pipeline * Remove DYLD_LIBRARY_PATH Co-authored-by: Hein Thant <official.heinthanth@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Hein Thant <official.heinthanth@gmail.com>
* Correctly import libcrypto functions using dynlib (#19881)Ardek Romak2022-06-131-35/+37
|
* feat: TLS-ALPN wrappers for OpenSSL (#19202)Iced Quinn2021-12-041-0/+14
| | | Co-authored-by: Iced Quinn <icedquinn@iceworks.cc>
* deprecate cuchar, don't redefine it (#18505)Andreas Rumpf2021-07-161-12/+12
|
* docs now show nimExperimentalX APIs (#18345)Timothee Cour2021-06-251-6/+6
| | | | | * docs now show nimExperimentalX APIs * fix for windows
* Fix #17755 (#17766)Dankr4d2021-04-181-2/+11
| | | Signed-off-by: Dankr4d <dude569@freenet.de>
* fix #17615(runnableExamples silently ignored if placed after some code) (#17619)flywind2021-04-021-2/+1
| | | Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* Free the certificate after checking in `checkCertName` (#17558) [backport:1.2]Danil Yarantsev2021-03-291-0/+2
| | | | | | * Fix small leak in checkCertName * Size is not needed either * Free the certificate after checking
* use lowercase --define switches (#17283)flywind2021-03-072-3/+3
|
* Simple fix to make the linenoise wrapper do the right thing (#17234)PMunch2021-03-021-1/+1
|
* use `-r:off` for runnableExamples that should compile but not run (#17203)Timothee Cour2021-03-011-8/+7
| | | | | * use -r:off for runnableExamples that should compile but not run * use -r:off in other RT disabled tests
* add io.readChars overload (simpler, less error prone) (#16044)Timothee Cour2021-02-221-1/+1
| | | | | | | | | | * add simpler to use readChars overload * use new readChars overload * Update lib/wrappers/openssl.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: flywind <xzsflywind@gmail.com>
* use single backtick (#17133)flywind2021-02-211-3/+3
|
* postgres module fixes (followup #17030) (#17053)Artem Klevtsov2021-02-161-2/+4
| | | | | | | * Fix pqSetSingleRowMode case. Add links to the docs * Add missing PGContextVisibility enum * Remove unused PGContextVisibility enum
* Add pqsetsinglerowmode to postgres module (#17030)Artem Klevtsov2021-02-141-2/+6
| | | | | | | | | | | | * Add pqsetsinglerowmode to postgres module Very useful to reduce memory usage when fetch a large amount of data. Documentation: https://www.postgresql.org/docs/current/libpq-single-row-mode.html * Add missing enum to the ExecStatusType * Revert entry * Update ConnStatusType enum
* add linenoise.readLineStatus to get status (eg: ctrl-D or ctrl-C) (#16977)Timothee Cour2021-02-093-6/+64
| | | | | * add linenoise.readLineStatus to get status (eg: ctrl-D or ctrl-C) * changelog
* revive PR #16320 (CRLF fix); fix #16308; Update openssl.nim (#16648)Timothee Cour2021-01-121-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update openssl.nim Fix issue # 16308 * Update openssl.nim These are also related to Issues [#16308](https://github.com/nim-lang/Nim/issues/16308) * Update openssl.nim * Add files via upload SSL PEM_read_RSAPUBKEY check * Delete topenssl_rsa_private_key.pem * Delete topenssl_rsa_public_key.pem * Delete topenssl.nim * Add files via upload * Update topenssl.nim This test makes me dizzy. Variables such as' PRSA 'must be declared in advance, otherwise they will run incorrectly. The argument uses a cString, and string also makes an error. * Update topenssl.nim ``` lhf@lhf-pc:/media/lhf/D$ cat -e ./topenssl.nim import std/wordwrap$ import openssl$ ``` * Update topenssl.nim * dos2unix tests/stdlib/topenssl.nim Co-authored-by: lihaifeng <lihaifeng@wxm.com>
* Compile sqlite3 with -O3 flag (#16697)Yuriy Glukhov2021-01-121-1/+1
|
* remove iup from stdlib in contrast to #15828 (#15830)flywind2020-11-031-995/+0
| | | | | * remove iup from stdlib * Update changelog.md
* Documentation only iup (#15732)Juan Carlos2020-10-261-0/+40
| | | | | | | * ReSync with Devel * ReSync * Add Examples for IUP, based from official doc
* Add support to the latest LibreSSL version (#15715) [backport:1.2] ↵Danil Yarantsev2020-10-261-2/+2
| | | | [backport:1.4]
* Add SSL_CTX_set_session_id_context (#15233)IDF2020-09-041-0/+1
| | | | | | | | | * Added SSL_CTX_set_session_id_context() * Added basic nimdoc * Raise an error if sessionIdContext is longer than the maximum length * Update nimdocs
* add openssl missing procs (#15180)Bung2020-08-171-0/+5
|
* fix sqlgetdata regression in odbc (#15161)cooldome2020-08-071-4/+4
| | | | | | | | | * fix sqlgetdata import * fix db_odbc * more fixes * fix style
* fix odbc regressions (#15009) [backport]cooldome2020-07-181-2/+2
| | | | | * fix odbc regressions * make only necessary changes
* openssl: use explicit result for SSL_in_init (#14597)alaviss2020-06-081-2/+2
| | | | | | | Sometimes the analysis might get funky and decide that the if-expression below is not an if-expression. Details of how this can happen is largely unknown, but it's easy to prevent so we will just go forward with that. Fix #14591
* wrappers/openssl: defer loading SSL_CTX_set_ciphersuitesLeorize2020-06-061-1/+3
|
* net: also set TLSv1.3 cipher suitesLeorize2020-06-061-0/+5
|
* wrappers/openssl: mark casts as gcsafeLeorize2020-06-061-17/+13
| | | | Nim will pretend that these proc are not gcsafe if they are not marked.
* wrappers/openssl: enable SSL_CTX_set_ecdh_auto for LibreSSLLeorize2020-06-061-1/+1
| | | | | | This procedure is not no-op for older LibreSSL, and the ABI is kept for newer versions, so there's no harm in enabling it unconditionally for all LibreSSL versions.
* wrappers/openssl: the version number comes from the utility libraryLeorize2020-06-061-9/+20
| | | | | Previously we loaded the SSL library for this, but that's not where the symbol resides.
* net: don't call set_ecdh_auto for super old OpenSSLLeorize2020-06-061-5/+3
| | | | | And the fun thing is that currently we use a super old OpenSSL on Windows.
* wrappers/openssl: fix SSL_CTX_set_modeLeorize2020-06-061-1/+1
| | | | Follow up of 794042080b270d9da8d64bb4285ce83787bdec7e
* wrappers/openssl: getOpenSSLVersion is gcsafeLeorize2020-06-061-3/+4
| | | | Yet another weird {.gcsafe.} triggering when it shouldn't.
* net: enable automatic EC curve selection for OpenSSL 1.0.2Leorize2020-06-061-0/+16
| | | | | This setting is required for servers running OpenSSL < 1.1.0 to support EC-based secure ciphers that is now part of the default cipher list.
* wrappers/openssl: fix SSL_CTX_ctrl signatureLeorize2020-06-061-1/+1
|
* openssl: fix erroneous function signaturesLeorize2020-06-061-3/+3
| | | | Now matches the declaration in openssl/err.h
* asyncnet, net: call SSL_shutdown only when connection establishedLeorize2020-06-061-0/+28
| | | | | | This commit prevents "SSL_shutdown while in init" errors from happening. See https://github.com/openssl/openssl/issues/710#issuecomment-253897666
* fix #9771 (#14357)Bung2020-05-151-12/+14
| | | | | | | * fix #9771 * map SQLLEN SQLULEN * fix proc params take TSqlLen Co-authored-by: bung87 <crc32@qq.com>
* Add procedures to read RSA keys from BIO format (#14223)PMunch2020-05-041-0/+4
|
* Add RSA key reading and encrypt/decrypt to openssl (#14137)PMunch2020-04-271-0/+23
| | | | This adds the procedures to read RSA keys and encrypt/decrypt messages with both public and private keys.
* Fixes issues with dynamic loading OpenSSL. Fixes #13903. (#13919) [backport]Dominik Picheta2020-04-081-19/+39
| | | | | | | | This fixes at least a couple of issues: * Procs loaded from the DLL being used even when the pointer is nil. * The actual issue (#13903) which appeared to cause stack corruption on Android 7.1.1 with OpenSSL 1.1.1f. The change that fixed this was the move to loading the procs in `sslSym`.
* Deprecate DCE:on (#13839)Juan Carlos2020-04-027-11/+0
|
9aba3'>^
f6ff01572 ^
e25474154 ^


f6ff01572 ^
73c6efdf6 ^
e25474154 ^

761679051 ^
6c5693e63 ^

e25474154 ^

f6ff01572 ^
e25474154 ^


f6ff01572 ^
e25474154 ^





c323ec015 ^
f6ff01572 ^
c323ec015 ^

761679051 ^
f6ff01572 ^
e25474154 ^


c323ec015 ^
6c5693e63 ^
e25474154 ^
f6ff01572 ^
e25474154 ^
f6ff01572 ^
e25474154 ^
f6ff01572 ^
e25474154 ^


f6ff01572 ^
e25474154 ^


f6ff01572 ^
e25474154 ^
f6ff01572 ^
e25474154 ^

f6ff01572 ^

e25474154 ^
f6ff01572 ^

e25474154 ^

f6ff01572 ^
e25474154 ^
f6ff01572 ^
e25474154 ^
f6ff01572 ^
e25474154 ^

f6ff01572 ^
e25474154 ^

f6ff01572 ^
6c5693e63 ^
f6ff01572 ^
e25474154 ^

f6ff01572 ^

e25474154 ^

f6ff01572 ^
e25474154 ^
f6ff01572 ^


e25474154 ^
f6ff01572 ^

e25474154 ^
f6ff01572 ^
e25474154 ^
f6ff01572 ^
e25474154 ^

f6ff01572 ^
6c5693e63 ^

e25474154 ^
f6ff01572 ^
e25474154 ^
f6ff01572 ^
e25474154 ^

f6ff01572 ^
e25474154 ^


f6ff01572 ^
e25474154 ^


f6ff01572 ^
e25474154 ^



f6ff01572 ^
e25474154 ^
f6ff01572 ^
e25474154 ^

f6ff01572 ^
e25474154 ^
f6ff01572 ^


e25474154 ^
f6ff01572 ^

e25474154 ^

f6ff01572 ^
e25474154 ^
f6ff01572 ^
e25474154 ^

f6ff01572 ^
e25474154 ^
f6ff01572 ^


e25474154 ^
f6ff01572 ^

e25474154 ^
f6ff01572 ^
e25474154 ^
f6ff01572 ^
e25474154 ^
f6ff01572 ^
e25474154 ^
f6ff01572 ^


e25474154 ^
f6ff01572 ^

e25474154 ^
f6ff01572 ^
e25474154 ^
f6ff01572 ^
e25474154 ^
446ffb548 ^
f6ff01572 ^
e25474154 ^
f6ff01572 ^

e25474154 ^
c323ec015 ^
f6ff01572 ^
e25474154 ^


c323ec015 ^

e25474154 ^

761679051 ^
6c5693e63 ^

e25474154 ^

f6ff01572 ^
e25474154 ^


f6ff01572 ^
e25474154 ^





761679051 ^
f6ff01572 ^
e25474154 ^

6c5693e63 ^
e25474154 ^
6c5693e63 ^
e25474154 ^
f6ff01572 ^
e25474154 ^
f6ff01572 ^


e25474154 ^

f6ff01572 ^


e25474154 ^
f6ff01572 ^
e25474154 ^



f6ff01572 ^

e25474154 ^
f6ff01572 ^

e25474154 ^


f6ff01572 ^
6c5693e63 ^

f6ff01572 ^
6c5693e63 ^

f6ff01572 ^
e25474154 ^
f6ff01572 ^
e25474154 ^
f6ff01572 ^
e25474154 ^


f6ff01572 ^
6c5693e63 ^

f6ff01572 ^
6c5693e63 ^

f6ff01572 ^
e25474154 ^
f6ff01572 ^
e25474154 ^
f6ff01572 ^
e25474154 ^


f6ff01572 ^
761679051 ^
e25474154 ^
761679051 ^

e25474154 ^
761679051 ^

f6ff01572 ^
e25474154 ^



6c5693e63 ^
e25474154 ^
f6ff01572 ^
e25474154 ^
f6ff01572 ^
e25474154 ^
f6ff01572 ^
e25474154 ^


f6ff01572 ^
e25474154 ^


f6ff01572 ^
e25474154 ^
f6ff01572 ^
e25474154 ^

f6ff01572 ^

e25474154 ^
f6ff01572 ^

e25474154 ^

f6ff01572 ^
e25474154 ^
f6ff01572 ^
e25474154 ^
f6ff01572 ^
e25474154 ^

f6ff01572 ^
e25474154 ^
f6ff01572 ^
e25474154 ^

f6ff01572 ^
e25474154 ^
6c5693e63 ^
e25474154 ^
f6ff01572 ^
e25474154 ^
f6ff01572 ^
e25474154 ^
f6ff01572 ^
e25474154 ^
f6ff01572 ^

e25474154 ^
f6ff01572 ^
e25474154 ^

f6ff01572 ^

e25474154 ^
f6ff01572 ^
e25474154 ^
f6ff01572 ^
e25474154 ^
c323ec015 ^
e25474154 ^
f6ff01572 ^
e25474154 ^
f6ff01572 ^
6c5693e63 ^
f6ff01572 ^
e25474154 ^



f6ff01572 ^
e25474154 ^

f6ff01572 ^
e25474154 ^


f6ff01572 ^
e25474154 ^


f6ff01572 ^
e25474154 ^


f6ff01572 ^
e25474154 ^

f6ff01572 ^
e25474154 ^

f6ff01572 ^
e25474154 ^

f6ff01572 ^
e25474154 ^

f6ff01572 ^
e25474154 ^
f6ff01572 ^


e25474154 ^
f6ff01572 ^

e25474154 ^
f6ff01572 ^
e25474154 ^
f6ff01572 ^
e25474154 ^
446ffb548 ^
f6ff01572 ^
e25474154 ^
f6ff01572 ^

e25474154 ^
c323ec015 ^
36c67455d ^
e25474154 ^


c323ec015 ^

e25474154 ^

761679051 ^
f6ff01572 ^





e25474154 ^


761679051 ^
f6ff01572 ^






e25474154 ^


761679051 ^
f6ff01572 ^










e25474154 ^


761679051 ^
f6ff01572 ^







e25474154 ^


761679051 ^
e25474154 ^
c323ec015 ^
0c25f7e20 ^
e25474154 ^



f6ff01572 ^
4c7607e07 ^



f6ff01572 ^





b961e47bf ^
dbf9117c5 ^
4c7607e07 ^
dbf9117c5 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570