fix missing signature type in sam3CreateSession DESTINATION GENERATE

This commit is contained in:
idk
2022-06-28 15:36:11 -04:00
parent ebf7d0b012
commit 1920a37572
2 changed files with 4 additions and 1 deletions

View File

@ -32,6 +32,9 @@ libsam3-tests: ${TEST_OBJS} ${LIB}
clean:
rm -f libsam3-tests ${LIB} ${OBJS} examples/sam3/samtest
boost:
gcc -Werror -Wall -Wextra -Wno-unused-parameter -std=c++11 -g -lboost_system -lboost_thread -lpthread examples/boost/boost.cpp -o boost
%.o: %.c Makefile
${CC} ${CFLAGS} $(LDFLAGS) -c $< -o $@

View File

@ -716,7 +716,7 @@ int sam3GenerateKeys(Sam3Session *ses, const char *hostname, int port,
return -1;
}
//
if (sam3tcpPrintf(fd, "DEST GENERATE\n") < 0) {
if (sam3tcpPrintf(fd, "DEST GENERATE %s\n", sigtypes[(int)sigType]) < 0) {
strcpyerr(ses, "DEST_ERROR");
}