From: Matt Birkholz Date: Wed, 17 Jun 2015 02:15:05 +0000 (-0700) Subject: Remove without-interrupts from runtime/crypto.scm. X-Git-Tag: mit-scheme-pucked-9.2.12~376^2~59 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=44d431245ce7dbd2ada3764729be2b52d7db5f77;p=mit-scheme.git Remove without-interrupts from runtime/crypto.scm. It was only used to postpone aborts that would leak mhash contexts. --- diff --git a/src/runtime/crypto.scm b/src/runtime/crypto.scm index e13005eaa..7f76961c2 100644 --- a/src/runtime/crypto.scm +++ b/src/runtime/crypto.scm @@ -67,7 +67,7 @@ USA. (define (mhash-init name) (let ((id (mhash-name->id name 'MHASH-INIT))) - (without-interrupts + (without-interruption (lambda () (let ((index ((ucode-primitive mhash_init 1) id))) (if (not index) @@ -84,7 +84,7 @@ USA. (define (mhash-hmac-init name key) (let* ((id (mhash-name->id name 'MHASH-INIT)) (pblock ((ucode-primitive mhash_get_hash_pblock 1) id))) - (without-interrupts + (without-interruption (lambda () (let ((index ((ucode-primitive mhash_hmac_init 3) id key pblock))) (if (not index) @@ -385,7 +385,7 @@ USA. (names-vector->list mcrypt-mode-names-vector)) (define (mcrypt-open-module algorithm mode) - (without-interrupts + (without-interruption (lambda () (add-to-gc-finalizer! mcrypt-contexts (make-mcrypt-context