diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/ui/ui_lib.c | 44 |
1 files changed, 19 insertions, 25 deletions
diff --git a/src/lib/libcrypto/ui/ui_lib.c b/src/lib/libcrypto/ui/ui_lib.c index 0a22eba69f..5f893c5915 100644 --- a/src/lib/libcrypto/ui/ui_lib.c +++ b/src/lib/libcrypto/ui/ui_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ui_lib.c,v 1.42 2020/09/25 11:05:21 tb Exp $ */ | 1 | /* $OpenBSD: ui_lib.c,v 1.43 2020/09/25 11:17:52 tb Exp $ */ |
2 | /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL | 2 | /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL |
3 | * project 2001. | 3 | * project 2001. |
4 | */ | 4 | */ |
@@ -562,8 +562,8 @@ UI_method_set_opener(UI_METHOD *method, int (*opener)(UI *ui)) | |||
562 | if (method) { | 562 | if (method) { |
563 | method->ui_open_session = opener; | 563 | method->ui_open_session = opener; |
564 | return 0; | 564 | return 0; |
565 | } else | 565 | } |
566 | return -1; | 566 | return -1; |
567 | } | 567 | } |
568 | 568 | ||
569 | int | 569 | int |
@@ -572,8 +572,8 @@ UI_method_set_writer(UI_METHOD *method, int (*writer)(UI *ui, UI_STRING *uis)) | |||
572 | if (method) { | 572 | if (method) { |
573 | method->ui_write_string = writer; | 573 | method->ui_write_string = writer; |
574 | return 0; | 574 | return 0; |
575 | } else | 575 | } |
576 | return -1; | 576 | return -1; |
577 | } | 577 | } |
578 | 578 | ||
579 | int | 579 | int |
@@ -582,8 +582,8 @@ UI_method_set_flusher(UI_METHOD *method, int (*flusher)(UI *ui)) | |||
582 | if (method) { | 582 | if (method) { |
583 | method->ui_flush = flusher; | 583 | method->ui_flush = flusher; |
584 | return 0; | 584 | return 0; |
585 | } else | 585 | } |
586 | return -1; | 586 | return -1; |
587 | } | 587 | } |
588 | 588 | ||
589 | int | 589 | int |
@@ -592,8 +592,8 @@ UI_method_set_reader(UI_METHOD *method, int (*reader)(UI *ui, UI_STRING *uis)) | |||
592 | if (method) { | 592 | if (method) { |
593 | method->ui_read_string = reader; | 593 | method->ui_read_string = reader; |
594 | return 0; | 594 | return 0; |
595 | } else | 595 | } |
596 | return -1; | 596 | return -1; |
597 | } | 597 | } |
598 | 598 | ||
599 | int | 599 | int |
@@ -602,8 +602,8 @@ UI_method_set_closer(UI_METHOD *method, int (*closer)(UI *ui)) | |||
602 | if (method) { | 602 | if (method) { |
603 | method->ui_close_session = closer; | 603 | method->ui_close_session = closer; |
604 | return 0; | 604 | return 0; |
605 | } else | 605 | } |
606 | return -1; | 606 | return -1; |
607 | } | 607 | } |
608 | 608 | ||
609 | int | 609 | int |
@@ -614,8 +614,8 @@ UI_method_set_prompt_constructor(UI_METHOD *method, | |||
614 | if (method) { | 614 | if (method) { |
615 | method->ui_construct_prompt = prompt_constructor; | 615 | method->ui_construct_prompt = prompt_constructor; |
616 | return 0; | 616 | return 0; |
617 | } else | 617 | } |
618 | return -1; | 618 | return -1; |
619 | } | 619 | } |
620 | 620 | ||
621 | int | 621 | int |
@@ -623,8 +623,7 @@ int | |||
623 | { | 623 | { |
624 | if (method) | 624 | if (method) |
625 | return method->ui_open_session; | 625 | return method->ui_open_session; |
626 | else | 626 | return NULL; |
627 | return NULL; | ||
628 | } | 627 | } |
629 | 628 | ||
630 | int | 629 | int |
@@ -632,8 +631,7 @@ int | |||
632 | { | 631 | { |
633 | if (method) | 632 | if (method) |
634 | return method->ui_write_string; | 633 | return method->ui_write_string; |
635 | else | 634 | return NULL; |
636 | return NULL; | ||
637 | } | 635 | } |
638 | 636 | ||
639 | int | 637 | int |
@@ -641,8 +639,7 @@ int | |||
641 | { | 639 | { |
642 | if (method) | 640 | if (method) |
643 | return method->ui_flush; | 641 | return method->ui_flush; |
644 | else | 642 | return NULL; |
645 | return NULL; | ||
646 | } | 643 | } |
647 | 644 | ||
648 | int | 645 | int |
@@ -650,8 +647,7 @@ int | |||
650 | { | 647 | { |
651 | if (method) | 648 | if (method) |
652 | return method->ui_read_string; | 649 | return method->ui_read_string; |
653 | else | 650 | return NULL; |
654 | return NULL; | ||
655 | } | 651 | } |
656 | 652 | ||
657 | int | 653 | int |
@@ -659,8 +655,7 @@ int | |||
659 | { | 655 | { |
660 | if (method) | 656 | if (method) |
661 | return method->ui_close_session; | 657 | return method->ui_close_session; |
662 | else | 658 | return NULL; |
663 | return NULL; | ||
664 | } | 659 | } |
665 | 660 | ||
666 | char * | 661 | char * |
@@ -669,8 +664,7 @@ char * | |||
669 | { | 664 | { |
670 | if (method) | 665 | if (method) |
671 | return method->ui_construct_prompt; | 666 | return method->ui_construct_prompt; |
672 | else | 667 | return NULL; |
673 | return NULL; | ||
674 | } | 668 | } |
675 | 669 | ||
676 | enum UI_string_types | 670 | enum UI_string_types |