]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/ui/ui_lib.c
Handle CTRL-C as non-redoable abort signal
[thirdparty/openssl.git] / crypto / ui / ui_lib.c
index a3a0065279b6dbd55350f940d458a09cfbf65070..8c3502e8cfa061b2d2427a79b14d01b9021c7f24 100644 (file)
@@ -500,6 +500,7 @@ int UI_process(UI *ui)
     if (ui->meth->ui_flush != NULL)
         switch (ui->meth->ui_flush(ui)) {
         case -1:               /* Interrupt/Cancel/something... */
+            ui->flags &= ~UI_FLAG_REDOABLE;
             ok = -2;
             goto err;
         case 0:                /* Errors */
@@ -517,6 +518,7 @@ int UI_process(UI *ui)
                                              sk_UI_STRING_value(ui->strings,
                                                                 i))) {
             case -1:           /* Interrupt/Cancel/something... */
+                ui->flags &= ~UI_FLAG_REDOABLE;
                 ok = -2;
                 goto err;
             case 0:            /* Errors */