about summary refs log tree commit diff stats
path: root/074wait.cc
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-05-04 14:57:04 -0700
committerKartik Agaram <vc@akkartik.com>2019-05-04 14:57:04 -0700
commit8591331a7f674d71c50ea0f560e1412d56001801 (patch)
treeb08452f3256244d54bfe4234cce49841ac120bc2 /074wait.cc
parent37aa2bf3e8c3b22c6b87925148cf938d1c1cc185 (diff)
downloadmu-8591331a7f674d71c50ea0f560e1412d56001801.tar.gz
5143 - add a bounds check
We'll just loudly abort the entire program if the output stream isn't large
enough to accept all the characters we want to print.
Diffstat (limited to '074wait.cc')
0 files changed, 0 insertions, 0 deletions
artik/teliva/blame/src/luasec/Makefile?id=8a36b2583ce970648e3b2b1272d22b884c1f534b'>^
5a484ef ^
97a0254 ^
7814c1c ^
ff43b5b ^
5a484ef ^

16a98ea ^
5a484ef ^
b40ad26 ^
5a484ef ^



70a2e1d ^
5a484ef ^
70a2e1d ^
5a484ef ^






b40ad26 ^

5a484ef ^




97a0254 ^
5a484ef ^
b40ad26 ^



5a484ef ^
5a484ef ^







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
          








            
                   
 
                                    
 
                                                       
 
                                                   
                                                                                                       
                                                                               
                  
              
                           
                     


                       
                                               
 
    





                                                                    
                                                                                                 



                                                                                             
                                                                                                                         
 


                             
      






                                                      
CMOD=ssl.a
LMOD=ssl.lua

OBJS= \
 options.o \
 x509.o    \
 context.o \
 ssl.o     \
 config.o  \
 ec.o

WARN=-Wall -Wshadow

BSD_CFLAGS=-O2 -fPIC $(WARN) $(DEFS)
BSD_LDFLAGS=-O -fPIC -shared

linux_CFLAGS=-g -O2 -std=c99 $(WARN) -Wpedantic $(DEFS)

macosx_ENV=env MACOSX_DEPLOYMENT_TARGET='$(MACVER)'
macosx_CFLAGS=-g -O2 -std=c99 -fno-common $(WARN) -Wpedantic $(DEFS) -I/usr/local/opt/openssl@3/include
macosx_LDFLAGS=-bundle -undefined dynamic_lookup -L/usr/local/opt/openssl@3/lib

INSTALL  = install
CC       = gcc
CCLD      ?= $(MYENV) $(CC)
CFLAGS  = $(MYCFLAGS)
LDFLAGS += $(MYLDFLAGS)
AR= ar rc
RANLIB= ranlib

.PHONY: all clean install none linux bsd macosx

all:

install: $(CMOD) $(LMOD)
	$(INSTALL) -d $(DESTDIR)$(LUAPATH)/ssl $(DESTDIR)$(LUACPATH)
	$(INSTALL) $(CMOD) $(DESTDIR)$(LUACPATH)
	$(INSTALL) -m644 $(LMOD) $(DESTDIR)$(LUAPATH)
	$(INSTALL) -m644 https.lua $(DESTDIR)$(LUAPATH)/ssl

linux:
	@$(MAKE) $(CMOD) MYCFLAGS="$(linux_CFLAGS)" MYLDFLAGS="$(linux_LDFLAGS)" EXTRA="$(EXTRA)"

bsd:
	@$(MAKE) $(CMOD) MYCFLAGS="$(BSD_CFLAGS)" MYLDFLAGS="$(BSD_LDFLAGS)" EXTRA="$(EXTRA)"

macosx:
	@$(MAKE) $(CMOD) MYCFLAGS="$(macosx_CFLAGS)" MYLDFLAGS="$(macosx_LDFLAGS)" MYENV="$(macosx_ENV)" EXTRA="$(EXTRA)"

$(CMOD): $(OBJS)
	$(AR) $(CMOD) $(OBJS)
	$(RANLIB) $(CMOD)

clean:
	rm -f $(OBJS) $(CMOD)

options.o: options.h options.c
ec.o: ec.c ec.h
x509.o: x509.c x509.h compat.h
context.o: context.c context.h ec.h compat.h options.h
ssl.o: ssl.c ssl.h context.h x509.h compat.h
config.o: config.c ec.h options.h compat.h