diff options
author | Dirk Engling <erdgeist@erdgeist.org> | 2022-05-16 15:53:39 +0200 |
---|---|---|
committer | Dirk Engling <erdgeist@erdgeist.org> | 2022-05-16 15:53:39 +0200 |
commit | d1ac67f6d73f24a165ccc008440bb8b208ae140f (patch) | |
tree | 0da0184ec2273ffa6f642ab06e776fcdda9f4ac3 /vchat-ui.c | |
parent | 43b74147212ddc5e619ac17dd1b5967b6b293d8a (diff) |
Decouple IO openssl's BIO abstraction and split connection and tls handling to allow for other TLS libs
Diffstat (limited to 'vchat-ui.c')
-rwxr-xr-x | vchat-ui.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -492,7 +492,7 @@ writescr ( WINDOW *win, struct sb_entry *entry ) { | |||
492 | /* store original attributes */ | 492 | /* store original attributes */ |
493 | WATTR_GET( win, orgattr); | 493 | WATTR_GET( win, orgattr); |
494 | attrbuffer[ 0 ] = orgattr; | 494 | attrbuffer[ 0 ] = orgattr; |
495 | 495 | ||
496 | /* copy time string */ | 496 | /* copy time string */ |
497 | for( i = 0; i < timelen; i++ ) | 497 | for( i = 0; i < timelen; i++ ) |
498 | if( tmp[ i ] == 1 ) { | 498 | if( tmp[ i ] == 1 ) { |
@@ -871,13 +871,13 @@ gettextwidth (const char *textbuffer) | |||
871 | do switch( *(textbuffer++) ) { | 871 | do switch( *(textbuffer++) ) { |
872 | case 1: | 872 | case 1: |
873 | if (!*(textbuffer++)) return width; | 873 | if (!*(textbuffer++)) return width; |
874 | break; | 874 | break; |
875 | case 0: | 875 | case 0: |
876 | return width; | 876 | return width; |
877 | break; | 877 | break; |
878 | default: | 878 | default: |
879 | width++; | 879 | width++; |
880 | break; | 880 | break; |
881 | } while( 1 ); | 881 | } while( 1 ); |
882 | } | 882 | } |
883 | 883 | ||
@@ -920,20 +920,20 @@ getsbeheight (struct sb_entry *entry, const int xwidth, int needstime ) | |||
920 | break; | 920 | break; |
921 | case 1: | 921 | case 1: |
922 | if (!*textbuffer++) return lines; | 922 | if (!*textbuffer++) return lines; |
923 | break; | 923 | break; |
924 | case 0: | 924 | case 0: |
925 | return lines; | 925 | return lines; |
926 | break; | 926 | break; |
927 | case 2: | 927 | case 2: |
928 | textbuffer=entry->what; | 928 | textbuffer=entry->what; |
929 | break; | 929 | break; |
930 | default: | 930 | default: |
931 | if( curx++ == xwidth ) { | 931 | if( curx++ == xwidth ) { |
932 | curx = 0; lines++; | 932 | curx = 0; lines++; |
933 | } | 933 | } |
934 | break; | 934 | break; |
935 | } while( 1 ); | 935 | } while( 1 ); |
936 | 936 | ||
937 | } | 937 | } |
938 | 938 | ||
939 | /* Check, which kind of filter we have to apply: | 939 | /* Check, which kind of filter we have to apply: |