diff --git a/.gitignore b/.gitignore index ae24c47..cb91be4 100644 --- a/.gitignore +++ b/.gitignore @@ -173,3 +173,8 @@ cython_debug/ # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ +a.out +*.out +*.o +server +client diff --git a/sample/.deps/client.Po b/sample/.deps/client.Po new file mode 100644 index 0000000..eaf77c8 --- /dev/null +++ b/sample/.deps/client.Po @@ -0,0 +1,268 @@ +client.o: client.c /usr/include/stdc-predef.h ../config.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/bits/long-double.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/timesize.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/time64.h \ + /usr/include/x86_64-linux-gnu/bits/types/clock_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/clockid_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/time_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/timer_t.h \ + /usr/lib/gcc/x86_64-linux-gnu/10/include/stddef.h \ + /usr/include/x86_64-linux-gnu/bits/stdint-intn.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endianness.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/uintn-identity.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/types/sigset_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h \ + /usr/include/x86_64-linux-gnu/bits/thread-shared-types.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h \ + /usr/include/x86_64-linux-gnu/bits/struct_mutex.h \ + /usr/include/x86_64-linux-gnu/bits/struct_rwlock.h \ + /usr/include/x86_64-linux-gnu/sys/uio.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_iovec.h \ + /usr/include/x86_64-linux-gnu/bits/uio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/uio-ext.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/libc-header-start.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/bits/floatn.h \ + /usr/include/x86_64-linux-gnu/bits/floatn-common.h \ + /usr/include/x86_64-linux-gnu/bits/types/locale_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__locale_t.h \ + /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/sys/socket.h \ + /usr/include/x86_64-linux-gnu/bits/socket.h \ + /usr/include/x86_64-linux-gnu/bits/socket_type.h \ + /usr/include/x86_64-linux-gnu/bits/sockaddr.h \ + /usr/include/x86_64-linux-gnu/asm/socket.h \ + /usr/include/asm-generic/socket.h /usr/include/linux/posix_types.h \ + /usr/include/linux/stddef.h \ + /usr/include/x86_64-linux-gnu/asm/posix_types.h \ + /usr/include/x86_64-linux-gnu/asm/posix_types_64.h \ + /usr/include/asm-generic/posix_types.h \ + /usr/include/x86_64-linux-gnu/asm/bitsperlong.h \ + /usr/include/asm-generic/bitsperlong.h \ + /usr/include/x86_64-linux-gnu/asm/sockios.h \ + /usr/include/asm-generic/sockios.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_osockaddr.h \ + /usr/include/netdb.h /usr/include/netinet/in.h \ + /usr/include/x86_64-linux-gnu/bits/stdint-uintn.h \ + /usr/include/x86_64-linux-gnu/bits/in.h /usr/include/rpc/netdb.h \ + /usr/include/x86_64-linux-gnu/bits/types/sigevent_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__sigval_t.h \ + /usr/include/x86_64-linux-gnu/bits/netdb.h \ + /usr/include/x86_64-linux-gnu/sys/param.h \ + /usr/lib/gcc/x86_64-linux-gnu/10/include/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/10/include/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h \ + /usr/include/x86_64-linux-gnu/bits/xopen_lim.h /usr/include/signal.h \ + /usr/include/x86_64-linux-gnu/bits/signum.h \ + /usr/include/x86_64-linux-gnu/bits/signum-generic.h \ + /usr/include/x86_64-linux-gnu/bits/types/sig_atomic_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/siginfo_t.h \ + /usr/include/x86_64-linux-gnu/bits/siginfo-arch.h \ + /usr/include/x86_64-linux-gnu/bits/siginfo-consts.h \ + /usr/include/x86_64-linux-gnu/bits/siginfo-consts-arch.h \ + /usr/include/x86_64-linux-gnu/bits/types/sigval_t.h \ + /usr/include/x86_64-linux-gnu/bits/sigevent-consts.h \ + /usr/include/x86_64-linux-gnu/bits/sigaction.h \ + /usr/include/x86_64-linux-gnu/bits/sigcontext.h \ + /usr/include/x86_64-linux-gnu/bits/types/stack_t.h \ + /usr/include/x86_64-linux-gnu/sys/ucontext.h \ + /usr/include/x86_64-linux-gnu/bits/sigstack.h \ + /usr/include/x86_64-linux-gnu/bits/ss_flags.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_sigstack.h \ + /usr/include/x86_64-linux-gnu/bits/sigthread.h \ + /usr/include/x86_64-linux-gnu/bits/signal_ext.h \ + /usr/include/x86_64-linux-gnu/bits/param.h /usr/include/linux/param.h \ + /usr/include/x86_64-linux-gnu/asm/param.h \ + /usr/include/asm-generic/param.h /usr/include/string.h \ + /usr/include/strings.h /usr/include/sysexits.h \ + /usr/include/x86_64-linux-gnu/sys/time.h /usr/include/stdio.h \ + /usr/lib/gcc/x86_64-linux-gnu/10/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__FILE.h \ + /usr/include/x86_64-linux-gnu/bits/types/FILE.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h \ + /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h /usr/include/ctype.h \ + /usr/include/errno.h /usr/include/x86_64-linux-gnu/bits/errno.h \ + /usr/include/linux/errno.h /usr/include/x86_64-linux-gnu/asm/errno.h \ + /usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \ + /usr/include/x86_64-linux-gnu/bits/types/error_t.h /usr/include/unistd.h \ + /usr/include/x86_64-linux-gnu/bits/posix_opt.h \ + /usr/include/x86_64-linux-gnu/bits/environments.h \ + /usr/include/x86_64-linux-gnu/bits/confname.h \ + /usr/include/x86_64-linux-gnu/bits/getopt_posix.h \ + /usr/include/x86_64-linux-gnu/bits/getopt_core.h \ + /usr/include/x86_64-linux-gnu/bits/unistd_ext.h /usr/include/arpa/inet.h \ + /usr/include/assert.h ../include/sasl.h ../include/prop.h \ + ../include/saslplug.h ../include/md5global.h ../include/md5.h \ + ../include/hmac-md5.h common.h +/usr/include/stdc-predef.h: +../config.h: +/usr/include/x86_64-linux-gnu/sys/types.h: +/usr/include/features.h: +/usr/include/x86_64-linux-gnu/sys/cdefs.h: +/usr/include/x86_64-linux-gnu/bits/wordsize.h: +/usr/include/x86_64-linux-gnu/bits/long-double.h: +/usr/include/x86_64-linux-gnu/gnu/stubs.h: +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: +/usr/include/x86_64-linux-gnu/bits/types.h: +/usr/include/x86_64-linux-gnu/bits/timesize.h: +/usr/include/x86_64-linux-gnu/bits/typesizes.h: +/usr/include/x86_64-linux-gnu/bits/time64.h: +/usr/include/x86_64-linux-gnu/bits/types/clock_t.h: +/usr/include/x86_64-linux-gnu/bits/types/clockid_t.h: +/usr/include/x86_64-linux-gnu/bits/types/time_t.h: +/usr/include/x86_64-linux-gnu/bits/types/timer_t.h: +/usr/lib/gcc/x86_64-linux-gnu/10/include/stddef.h: +/usr/include/x86_64-linux-gnu/bits/stdint-intn.h: +/usr/include/endian.h: +/usr/include/x86_64-linux-gnu/bits/endian.h: +/usr/include/x86_64-linux-gnu/bits/endianness.h: +/usr/include/x86_64-linux-gnu/bits/byteswap.h: +/usr/include/x86_64-linux-gnu/bits/uintn-identity.h: +/usr/include/x86_64-linux-gnu/sys/select.h: +/usr/include/x86_64-linux-gnu/bits/select.h: +/usr/include/x86_64-linux-gnu/bits/types/sigset_t.h: +/usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h: +/usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h: +/usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h: +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: +/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h: +/usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h: +/usr/include/x86_64-linux-gnu/bits/struct_mutex.h: +/usr/include/x86_64-linux-gnu/bits/struct_rwlock.h: +/usr/include/x86_64-linux-gnu/sys/uio.h: +/usr/include/x86_64-linux-gnu/bits/types/struct_iovec.h: +/usr/include/x86_64-linux-gnu/bits/uio_lim.h: +/usr/include/x86_64-linux-gnu/bits/uio-ext.h: +/usr/include/stdlib.h: +/usr/include/x86_64-linux-gnu/bits/libc-header-start.h: +/usr/include/x86_64-linux-gnu/bits/waitflags.h: +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: +/usr/include/x86_64-linux-gnu/bits/floatn.h: +/usr/include/x86_64-linux-gnu/bits/floatn-common.h: +/usr/include/x86_64-linux-gnu/bits/types/locale_t.h: +/usr/include/x86_64-linux-gnu/bits/types/__locale_t.h: +/usr/include/alloca.h: +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: +/usr/include/x86_64-linux-gnu/sys/socket.h: +/usr/include/x86_64-linux-gnu/bits/socket.h: +/usr/include/x86_64-linux-gnu/bits/socket_type.h: +/usr/include/x86_64-linux-gnu/bits/sockaddr.h: +/usr/include/x86_64-linux-gnu/asm/socket.h: +/usr/include/asm-generic/socket.h: +/usr/include/linux/posix_types.h: +/usr/include/linux/stddef.h: +/usr/include/x86_64-linux-gnu/asm/posix_types.h: +/usr/include/x86_64-linux-gnu/asm/posix_types_64.h: +/usr/include/asm-generic/posix_types.h: +/usr/include/x86_64-linux-gnu/asm/bitsperlong.h: +/usr/include/asm-generic/bitsperlong.h: +/usr/include/x86_64-linux-gnu/asm/sockios.h: +/usr/include/asm-generic/sockios.h: +/usr/include/x86_64-linux-gnu/bits/types/struct_osockaddr.h: +/usr/include/netdb.h: +/usr/include/netinet/in.h: +/usr/include/x86_64-linux-gnu/bits/stdint-uintn.h: +/usr/include/x86_64-linux-gnu/bits/in.h: +/usr/include/rpc/netdb.h: +/usr/include/x86_64-linux-gnu/bits/types/sigevent_t.h: +/usr/include/x86_64-linux-gnu/bits/types/__sigval_t.h: +/usr/include/x86_64-linux-gnu/bits/netdb.h: +/usr/include/x86_64-linux-gnu/sys/param.h: +/usr/lib/gcc/x86_64-linux-gnu/10/include/limits.h: +/usr/lib/gcc/x86_64-linux-gnu/10/include/syslimits.h: +/usr/include/limits.h: +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: +/usr/include/x86_64-linux-gnu/bits/local_lim.h: +/usr/include/linux/limits.h: +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: +/usr/include/x86_64-linux-gnu/bits/xopen_lim.h: +/usr/include/signal.h: +/usr/include/x86_64-linux-gnu/bits/signum.h: +/usr/include/x86_64-linux-gnu/bits/signum-generic.h: +/usr/include/x86_64-linux-gnu/bits/types/sig_atomic_t.h: +/usr/include/x86_64-linux-gnu/bits/types/siginfo_t.h: +/usr/include/x86_64-linux-gnu/bits/siginfo-arch.h: +/usr/include/x86_64-linux-gnu/bits/siginfo-consts.h: +/usr/include/x86_64-linux-gnu/bits/siginfo-consts-arch.h: +/usr/include/x86_64-linux-gnu/bits/types/sigval_t.h: +/usr/include/x86_64-linux-gnu/bits/sigevent-consts.h: +/usr/include/x86_64-linux-gnu/bits/sigaction.h: +/usr/include/x86_64-linux-gnu/bits/sigcontext.h: +/usr/include/x86_64-linux-gnu/bits/types/stack_t.h: +/usr/include/x86_64-linux-gnu/sys/ucontext.h: +/usr/include/x86_64-linux-gnu/bits/sigstack.h: +/usr/include/x86_64-linux-gnu/bits/ss_flags.h: +/usr/include/x86_64-linux-gnu/bits/types/struct_sigstack.h: +/usr/include/x86_64-linux-gnu/bits/sigthread.h: +/usr/include/x86_64-linux-gnu/bits/signal_ext.h: +/usr/include/x86_64-linux-gnu/bits/param.h: +/usr/include/linux/param.h: +/usr/include/x86_64-linux-gnu/asm/param.h: +/usr/include/asm-generic/param.h: +/usr/include/string.h: +/usr/include/strings.h: +/usr/include/sysexits.h: +/usr/include/x86_64-linux-gnu/sys/time.h: +/usr/include/stdio.h: +/usr/lib/gcc/x86_64-linux-gnu/10/include/stdarg.h: +/usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h: +/usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h: +/usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h: +/usr/include/x86_64-linux-gnu/bits/types/__FILE.h: +/usr/include/x86_64-linux-gnu/bits/types/FILE.h: +/usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h: +/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h: +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: +/usr/include/x86_64-linux-gnu/bits/stdio.h: +/usr/include/ctype.h: +/usr/include/errno.h: +/usr/include/x86_64-linux-gnu/bits/errno.h: +/usr/include/linux/errno.h: +/usr/include/x86_64-linux-gnu/asm/errno.h: +/usr/include/asm-generic/errno.h: +/usr/include/asm-generic/errno-base.h: +/usr/include/x86_64-linux-gnu/bits/types/error_t.h: +/usr/include/unistd.h: +/usr/include/x86_64-linux-gnu/bits/posix_opt.h: +/usr/include/x86_64-linux-gnu/bits/environments.h: +/usr/include/x86_64-linux-gnu/bits/confname.h: +/usr/include/x86_64-linux-gnu/bits/getopt_posix.h: +/usr/include/x86_64-linux-gnu/bits/getopt_core.h: +/usr/include/x86_64-linux-gnu/bits/unistd_ext.h: +/usr/include/arpa/inet.h: +/usr/include/assert.h: +../include/sasl.h: +../include/prop.h: +../include/saslplug.h: +../include/md5global.h: +../include/md5.h: +../include/hmac-md5.h: +common.h: diff --git a/sample/.deps/common.Po b/sample/.deps/common.Po new file mode 100644 index 0000000..1a8180c --- /dev/null +++ b/sample/.deps/common.Po @@ -0,0 +1,235 @@ +common.o: common.c /usr/include/stdc-predef.h ../config.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/bits/long-double.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/timesize.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/time64.h \ + /usr/include/x86_64-linux-gnu/bits/types/clock_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/clockid_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/time_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/timer_t.h \ + /usr/lib/gcc/x86_64-linux-gnu/10/include/stddef.h \ + /usr/include/x86_64-linux-gnu/bits/stdint-intn.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endianness.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/uintn-identity.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/types/sigset_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h \ + /usr/include/x86_64-linux-gnu/bits/thread-shared-types.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h \ + /usr/include/x86_64-linux-gnu/bits/struct_mutex.h \ + /usr/include/x86_64-linux-gnu/bits/struct_rwlock.h \ + /usr/include/x86_64-linux-gnu/sys/uio.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_iovec.h \ + /usr/include/x86_64-linux-gnu/bits/uio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/uio-ext.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/libc-header-start.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/bits/floatn.h \ + /usr/include/x86_64-linux-gnu/bits/floatn-common.h \ + /usr/include/x86_64-linux-gnu/bits/types/locale_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__locale_t.h \ + /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/sys/socket.h \ + /usr/include/x86_64-linux-gnu/bits/socket.h \ + /usr/include/x86_64-linux-gnu/bits/socket_type.h \ + /usr/include/x86_64-linux-gnu/bits/sockaddr.h \ + /usr/include/x86_64-linux-gnu/asm/socket.h \ + /usr/include/asm-generic/socket.h /usr/include/linux/posix_types.h \ + /usr/include/linux/stddef.h \ + /usr/include/x86_64-linux-gnu/asm/posix_types.h \ + /usr/include/x86_64-linux-gnu/asm/posix_types_64.h \ + /usr/include/asm-generic/posix_types.h \ + /usr/include/x86_64-linux-gnu/asm/bitsperlong.h \ + /usr/include/asm-generic/bitsperlong.h \ + /usr/include/x86_64-linux-gnu/asm/sockios.h \ + /usr/include/asm-generic/sockios.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_osockaddr.h \ + /usr/include/netdb.h /usr/include/netinet/in.h \ + /usr/include/x86_64-linux-gnu/bits/stdint-uintn.h \ + /usr/include/x86_64-linux-gnu/bits/in.h /usr/include/rpc/netdb.h \ + /usr/include/x86_64-linux-gnu/bits/types/sigevent_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__sigval_t.h \ + /usr/include/x86_64-linux-gnu/bits/netdb.h \ + /usr/include/x86_64-linux-gnu/sys/param.h \ + /usr/lib/gcc/x86_64-linux-gnu/10/include/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/10/include/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h \ + /usr/include/x86_64-linux-gnu/bits/xopen_lim.h /usr/include/signal.h \ + /usr/include/x86_64-linux-gnu/bits/signum.h \ + /usr/include/x86_64-linux-gnu/bits/signum-generic.h \ + /usr/include/x86_64-linux-gnu/bits/types/sig_atomic_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/siginfo_t.h \ + /usr/include/x86_64-linux-gnu/bits/siginfo-arch.h \ + /usr/include/x86_64-linux-gnu/bits/siginfo-consts.h \ + /usr/include/x86_64-linux-gnu/bits/siginfo-consts-arch.h \ + /usr/include/x86_64-linux-gnu/bits/types/sigval_t.h \ + /usr/include/x86_64-linux-gnu/bits/sigevent-consts.h \ + /usr/include/x86_64-linux-gnu/bits/sigaction.h \ + /usr/include/x86_64-linux-gnu/bits/sigcontext.h \ + /usr/include/x86_64-linux-gnu/bits/types/stack_t.h \ + /usr/include/x86_64-linux-gnu/sys/ucontext.h \ + /usr/include/x86_64-linux-gnu/bits/sigstack.h \ + /usr/include/x86_64-linux-gnu/bits/ss_flags.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_sigstack.h \ + /usr/include/x86_64-linux-gnu/bits/sigthread.h \ + /usr/include/x86_64-linux-gnu/bits/signal_ext.h \ + /usr/include/x86_64-linux-gnu/bits/param.h /usr/include/linux/param.h \ + /usr/include/x86_64-linux-gnu/asm/param.h \ + /usr/include/asm-generic/param.h /usr/include/string.h \ + /usr/include/strings.h /usr/include/sysexits.h \ + /usr/include/x86_64-linux-gnu/sys/time.h /usr/include/stdio.h \ + /usr/lib/gcc/x86_64-linux-gnu/10/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__FILE.h \ + /usr/include/x86_64-linux-gnu/bits/types/FILE.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h \ + /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h /usr/include/ctype.h \ + ../include/sasl.h ../include/prop.h +/usr/include/stdc-predef.h: +../config.h: +/usr/include/x86_64-linux-gnu/sys/types.h: +/usr/include/features.h: +/usr/include/x86_64-linux-gnu/sys/cdefs.h: +/usr/include/x86_64-linux-gnu/bits/wordsize.h: +/usr/include/x86_64-linux-gnu/bits/long-double.h: +/usr/include/x86_64-linux-gnu/gnu/stubs.h: +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: +/usr/include/x86_64-linux-gnu/bits/types.h: +/usr/include/x86_64-linux-gnu/bits/timesize.h: +/usr/include/x86_64-linux-gnu/bits/typesizes.h: +/usr/include/x86_64-linux-gnu/bits/time64.h: +/usr/include/x86_64-linux-gnu/bits/types/clock_t.h: +/usr/include/x86_64-linux-gnu/bits/types/clockid_t.h: +/usr/include/x86_64-linux-gnu/bits/types/time_t.h: +/usr/include/x86_64-linux-gnu/bits/types/timer_t.h: +/usr/lib/gcc/x86_64-linux-gnu/10/include/stddef.h: +/usr/include/x86_64-linux-gnu/bits/stdint-intn.h: +/usr/include/endian.h: +/usr/include/x86_64-linux-gnu/bits/endian.h: +/usr/include/x86_64-linux-gnu/bits/endianness.h: +/usr/include/x86_64-linux-gnu/bits/byteswap.h: +/usr/include/x86_64-linux-gnu/bits/uintn-identity.h: +/usr/include/x86_64-linux-gnu/sys/select.h: +/usr/include/x86_64-linux-gnu/bits/select.h: +/usr/include/x86_64-linux-gnu/bits/types/sigset_t.h: +/usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h: +/usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h: +/usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h: +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: +/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h: +/usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h: +/usr/include/x86_64-linux-gnu/bits/struct_mutex.h: +/usr/include/x86_64-linux-gnu/bits/struct_rwlock.h: +/usr/include/x86_64-linux-gnu/sys/uio.h: +/usr/include/x86_64-linux-gnu/bits/types/struct_iovec.h: +/usr/include/x86_64-linux-gnu/bits/uio_lim.h: +/usr/include/x86_64-linux-gnu/bits/uio-ext.h: +/usr/include/stdlib.h: +/usr/include/x86_64-linux-gnu/bits/libc-header-start.h: +/usr/include/x86_64-linux-gnu/bits/waitflags.h: +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: +/usr/include/x86_64-linux-gnu/bits/floatn.h: +/usr/include/x86_64-linux-gnu/bits/floatn-common.h: +/usr/include/x86_64-linux-gnu/bits/types/locale_t.h: +/usr/include/x86_64-linux-gnu/bits/types/__locale_t.h: +/usr/include/alloca.h: +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: +/usr/include/x86_64-linux-gnu/sys/socket.h: +/usr/include/x86_64-linux-gnu/bits/socket.h: +/usr/include/x86_64-linux-gnu/bits/socket_type.h: +/usr/include/x86_64-linux-gnu/bits/sockaddr.h: +/usr/include/x86_64-linux-gnu/asm/socket.h: +/usr/include/asm-generic/socket.h: +/usr/include/linux/posix_types.h: +/usr/include/linux/stddef.h: +/usr/include/x86_64-linux-gnu/asm/posix_types.h: +/usr/include/x86_64-linux-gnu/asm/posix_types_64.h: +/usr/include/asm-generic/posix_types.h: +/usr/include/x86_64-linux-gnu/asm/bitsperlong.h: +/usr/include/asm-generic/bitsperlong.h: +/usr/include/x86_64-linux-gnu/asm/sockios.h: +/usr/include/asm-generic/sockios.h: +/usr/include/x86_64-linux-gnu/bits/types/struct_osockaddr.h: +/usr/include/netdb.h: +/usr/include/netinet/in.h: +/usr/include/x86_64-linux-gnu/bits/stdint-uintn.h: +/usr/include/x86_64-linux-gnu/bits/in.h: +/usr/include/rpc/netdb.h: +/usr/include/x86_64-linux-gnu/bits/types/sigevent_t.h: +/usr/include/x86_64-linux-gnu/bits/types/__sigval_t.h: +/usr/include/x86_64-linux-gnu/bits/netdb.h: +/usr/include/x86_64-linux-gnu/sys/param.h: +/usr/lib/gcc/x86_64-linux-gnu/10/include/limits.h: +/usr/lib/gcc/x86_64-linux-gnu/10/include/syslimits.h: +/usr/include/limits.h: +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: +/usr/include/x86_64-linux-gnu/bits/local_lim.h: +/usr/include/linux/limits.h: +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: +/usr/include/x86_64-linux-gnu/bits/xopen_lim.h: +/usr/include/signal.h: +/usr/include/x86_64-linux-gnu/bits/signum.h: +/usr/include/x86_64-linux-gnu/bits/signum-generic.h: +/usr/include/x86_64-linux-gnu/bits/types/sig_atomic_t.h: +/usr/include/x86_64-linux-gnu/bits/types/siginfo_t.h: +/usr/include/x86_64-linux-gnu/bits/siginfo-arch.h: +/usr/include/x86_64-linux-gnu/bits/siginfo-consts.h: +/usr/include/x86_64-linux-gnu/bits/siginfo-consts-arch.h: +/usr/include/x86_64-linux-gnu/bits/types/sigval_t.h: +/usr/include/x86_64-linux-gnu/bits/sigevent-consts.h: +/usr/include/x86_64-linux-gnu/bits/sigaction.h: +/usr/include/x86_64-linux-gnu/bits/sigcontext.h: +/usr/include/x86_64-linux-gnu/bits/types/stack_t.h: +/usr/include/x86_64-linux-gnu/sys/ucontext.h: +/usr/include/x86_64-linux-gnu/bits/sigstack.h: +/usr/include/x86_64-linux-gnu/bits/ss_flags.h: +/usr/include/x86_64-linux-gnu/bits/types/struct_sigstack.h: +/usr/include/x86_64-linux-gnu/bits/sigthread.h: +/usr/include/x86_64-linux-gnu/bits/signal_ext.h: +/usr/include/x86_64-linux-gnu/bits/param.h: +/usr/include/linux/param.h: +/usr/include/x86_64-linux-gnu/asm/param.h: +/usr/include/asm-generic/param.h: +/usr/include/string.h: +/usr/include/strings.h: +/usr/include/sysexits.h: +/usr/include/x86_64-linux-gnu/sys/time.h: +/usr/include/stdio.h: +/usr/lib/gcc/x86_64-linux-gnu/10/include/stdarg.h: +/usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h: +/usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h: +/usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h: +/usr/include/x86_64-linux-gnu/bits/types/__FILE.h: +/usr/include/x86_64-linux-gnu/bits/types/FILE.h: +/usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h: +/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h: +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: +/usr/include/x86_64-linux-gnu/bits/stdio.h: +/usr/include/ctype.h: +../include/sasl.h: +../include/prop.h: diff --git a/sample/.deps/http_digest_client.Po b/sample/.deps/http_digest_client.Po new file mode 100644 index 0000000..9e60115 --- /dev/null +++ b/sample/.deps/http_digest_client.Po @@ -0,0 +1,173 @@ +http_digest_client.o: http_digest_client.c /usr/include/stdc-predef.h \ + /usr/include/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/libc-header-start.h \ + /usr/include/features.h /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/bits/long-double.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/10/include/stddef.h \ + /usr/lib/gcc/x86_64-linux-gnu/10/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/timesize.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/time64.h \ + /usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__FILE.h \ + /usr/include/x86_64-linux-gnu/bits/types/FILE.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/bits/floatn.h \ + /usr/include/x86_64-linux-gnu/bits/floatn-common.h \ + /usr/include/x86_64-linux-gnu/sys/types.h \ + /usr/include/x86_64-linux-gnu/bits/types/clock_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/clockid_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/time_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/timer_t.h \ + /usr/include/x86_64-linux-gnu/bits/stdint-intn.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endianness.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/uintn-identity.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/types/sigset_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h \ + /usr/include/x86_64-linux-gnu/bits/thread-shared-types.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h \ + /usr/include/x86_64-linux-gnu/bits/struct_mutex.h \ + /usr/include/x86_64-linux-gnu/bits/struct_rwlock.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h /usr/include/string.h \ + /usr/include/x86_64-linux-gnu/bits/types/locale_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__locale_t.h \ + /usr/include/strings.h /usr/include/unistd.h \ + /usr/include/x86_64-linux-gnu/bits/posix_opt.h \ + /usr/include/x86_64-linux-gnu/bits/environments.h \ + /usr/include/x86_64-linux-gnu/bits/confname.h \ + /usr/include/x86_64-linux-gnu/bits/getopt_posix.h \ + /usr/include/x86_64-linux-gnu/bits/getopt_core.h \ + /usr/include/x86_64-linux-gnu/bits/unistd_ext.h /usr/include/pwd.h \ + /usr/include/x86_64-linux-gnu/sys/socket.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_iovec.h \ + /usr/include/x86_64-linux-gnu/bits/socket.h \ + /usr/include/x86_64-linux-gnu/bits/socket_type.h \ + /usr/include/x86_64-linux-gnu/bits/sockaddr.h \ + /usr/include/x86_64-linux-gnu/asm/socket.h \ + /usr/include/asm-generic/socket.h /usr/include/linux/posix_types.h \ + /usr/include/linux/stddef.h \ + /usr/include/x86_64-linux-gnu/asm/posix_types.h \ + /usr/include/x86_64-linux-gnu/asm/posix_types_64.h \ + /usr/include/asm-generic/posix_types.h \ + /usr/include/x86_64-linux-gnu/asm/bitsperlong.h \ + /usr/include/asm-generic/bitsperlong.h \ + /usr/include/x86_64-linux-gnu/asm/sockios.h \ + /usr/include/asm-generic/sockios.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_osockaddr.h \ + /usr/include/netinet/in.h \ + /usr/include/x86_64-linux-gnu/bits/stdint-uintn.h \ + /usr/include/x86_64-linux-gnu/bits/in.h /usr/include/arpa/inet.h \ + /usr/include/netdb.h /usr/include/rpc/netdb.h \ + /usr/include/x86_64-linux-gnu/bits/netdb.h ../include/sasl.h \ + ../include/prop.h +/usr/include/stdc-predef.h: +/usr/include/stdio.h: +/usr/include/x86_64-linux-gnu/bits/libc-header-start.h: +/usr/include/features.h: +/usr/include/x86_64-linux-gnu/sys/cdefs.h: +/usr/include/x86_64-linux-gnu/bits/wordsize.h: +/usr/include/x86_64-linux-gnu/bits/long-double.h: +/usr/include/x86_64-linux-gnu/gnu/stubs.h: +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: +/usr/lib/gcc/x86_64-linux-gnu/10/include/stddef.h: +/usr/lib/gcc/x86_64-linux-gnu/10/include/stdarg.h: +/usr/include/x86_64-linux-gnu/bits/types.h: +/usr/include/x86_64-linux-gnu/bits/timesize.h: +/usr/include/x86_64-linux-gnu/bits/typesizes.h: +/usr/include/x86_64-linux-gnu/bits/time64.h: +/usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h: +/usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h: +/usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h: +/usr/include/x86_64-linux-gnu/bits/types/__FILE.h: +/usr/include/x86_64-linux-gnu/bits/types/FILE.h: +/usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h: +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: +/usr/include/x86_64-linux-gnu/bits/stdio.h: +/usr/include/stdlib.h: +/usr/include/x86_64-linux-gnu/bits/waitflags.h: +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: +/usr/include/x86_64-linux-gnu/bits/floatn.h: +/usr/include/x86_64-linux-gnu/bits/floatn-common.h: +/usr/include/x86_64-linux-gnu/sys/types.h: +/usr/include/x86_64-linux-gnu/bits/types/clock_t.h: +/usr/include/x86_64-linux-gnu/bits/types/clockid_t.h: +/usr/include/x86_64-linux-gnu/bits/types/time_t.h: +/usr/include/x86_64-linux-gnu/bits/types/timer_t.h: +/usr/include/x86_64-linux-gnu/bits/stdint-intn.h: +/usr/include/endian.h: +/usr/include/x86_64-linux-gnu/bits/endian.h: +/usr/include/x86_64-linux-gnu/bits/endianness.h: +/usr/include/x86_64-linux-gnu/bits/byteswap.h: +/usr/include/x86_64-linux-gnu/bits/uintn-identity.h: +/usr/include/x86_64-linux-gnu/sys/select.h: +/usr/include/x86_64-linux-gnu/bits/select.h: +/usr/include/x86_64-linux-gnu/bits/types/sigset_t.h: +/usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h: +/usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h: +/usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h: +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: +/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h: +/usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h: +/usr/include/x86_64-linux-gnu/bits/struct_mutex.h: +/usr/include/x86_64-linux-gnu/bits/struct_rwlock.h: +/usr/include/alloca.h: +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: +/usr/include/string.h: +/usr/include/x86_64-linux-gnu/bits/types/locale_t.h: +/usr/include/x86_64-linux-gnu/bits/types/__locale_t.h: +/usr/include/strings.h: +/usr/include/unistd.h: +/usr/include/x86_64-linux-gnu/bits/posix_opt.h: +/usr/include/x86_64-linux-gnu/bits/environments.h: +/usr/include/x86_64-linux-gnu/bits/confname.h: +/usr/include/x86_64-linux-gnu/bits/getopt_posix.h: +/usr/include/x86_64-linux-gnu/bits/getopt_core.h: +/usr/include/x86_64-linux-gnu/bits/unistd_ext.h: +/usr/include/pwd.h: +/usr/include/x86_64-linux-gnu/sys/socket.h: +/usr/include/x86_64-linux-gnu/bits/types/struct_iovec.h: +/usr/include/x86_64-linux-gnu/bits/socket.h: +/usr/include/x86_64-linux-gnu/bits/socket_type.h: +/usr/include/x86_64-linux-gnu/bits/sockaddr.h: +/usr/include/x86_64-linux-gnu/asm/socket.h: +/usr/include/asm-generic/socket.h: +/usr/include/linux/posix_types.h: +/usr/include/linux/stddef.h: +/usr/include/x86_64-linux-gnu/asm/posix_types.h: +/usr/include/x86_64-linux-gnu/asm/posix_types_64.h: +/usr/include/asm-generic/posix_types.h: +/usr/include/x86_64-linux-gnu/asm/bitsperlong.h: +/usr/include/asm-generic/bitsperlong.h: +/usr/include/x86_64-linux-gnu/asm/sockios.h: +/usr/include/asm-generic/sockios.h: +/usr/include/x86_64-linux-gnu/bits/types/struct_osockaddr.h: +/usr/include/netinet/in.h: +/usr/include/x86_64-linux-gnu/bits/stdint-uintn.h: +/usr/include/x86_64-linux-gnu/bits/in.h: +/usr/include/arpa/inet.h: +/usr/include/netdb.h: +/usr/include/rpc/netdb.h: +/usr/include/x86_64-linux-gnu/bits/netdb.h: +../include/sasl.h: +../include/prop.h: diff --git a/sample/.deps/sample-client.Po b/sample/.deps/sample-client.Po new file mode 100644 index 0000000..9ce06a8 --- /dev/null +++ b/sample/.deps/sample-client.Po @@ -0,0 +1 @@ +# dummy diff --git a/sample/.deps/sample-server.Po b/sample/.deps/sample-server.Po new file mode 100644 index 0000000..9ce06a8 --- /dev/null +++ b/sample/.deps/sample-server.Po @@ -0,0 +1 @@ +# dummy diff --git a/sample/.deps/server.Po b/sample/.deps/server.Po new file mode 100644 index 0000000..954a3d9 --- /dev/null +++ b/sample/.deps/server.Po @@ -0,0 +1,261 @@ +server.o: server.c /usr/include/stdc-predef.h ../config.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/bits/long-double.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/timesize.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/time64.h \ + /usr/include/x86_64-linux-gnu/bits/types/clock_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/clockid_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/time_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/timer_t.h \ + /usr/lib/gcc/x86_64-linux-gnu/10/include/stddef.h \ + /usr/include/x86_64-linux-gnu/bits/stdint-intn.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endianness.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/uintn-identity.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/types/sigset_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h \ + /usr/include/x86_64-linux-gnu/bits/thread-shared-types.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h \ + /usr/include/x86_64-linux-gnu/bits/struct_mutex.h \ + /usr/include/x86_64-linux-gnu/bits/struct_rwlock.h \ + /usr/include/x86_64-linux-gnu/sys/uio.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_iovec.h \ + /usr/include/x86_64-linux-gnu/bits/uio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/uio-ext.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/libc-header-start.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/bits/floatn.h \ + /usr/include/x86_64-linux-gnu/bits/floatn-common.h \ + /usr/include/x86_64-linux-gnu/bits/types/locale_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__locale_t.h \ + /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/sys/socket.h \ + /usr/include/x86_64-linux-gnu/bits/socket.h \ + /usr/include/x86_64-linux-gnu/bits/socket_type.h \ + /usr/include/x86_64-linux-gnu/bits/sockaddr.h \ + /usr/include/x86_64-linux-gnu/asm/socket.h \ + /usr/include/asm-generic/socket.h /usr/include/linux/posix_types.h \ + /usr/include/linux/stddef.h \ + /usr/include/x86_64-linux-gnu/asm/posix_types.h \ + /usr/include/x86_64-linux-gnu/asm/posix_types_64.h \ + /usr/include/asm-generic/posix_types.h \ + /usr/include/x86_64-linux-gnu/asm/bitsperlong.h \ + /usr/include/asm-generic/bitsperlong.h \ + /usr/include/x86_64-linux-gnu/asm/sockios.h \ + /usr/include/asm-generic/sockios.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_osockaddr.h \ + /usr/include/netdb.h /usr/include/netinet/in.h \ + /usr/include/x86_64-linux-gnu/bits/stdint-uintn.h \ + /usr/include/x86_64-linux-gnu/bits/in.h /usr/include/rpc/netdb.h \ + /usr/include/x86_64-linux-gnu/bits/types/sigevent_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__sigval_t.h \ + /usr/include/x86_64-linux-gnu/bits/netdb.h \ + /usr/include/x86_64-linux-gnu/sys/param.h \ + /usr/lib/gcc/x86_64-linux-gnu/10/include/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/10/include/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h \ + /usr/include/x86_64-linux-gnu/bits/xopen_lim.h /usr/include/signal.h \ + /usr/include/x86_64-linux-gnu/bits/signum.h \ + /usr/include/x86_64-linux-gnu/bits/signum-generic.h \ + /usr/include/x86_64-linux-gnu/bits/types/sig_atomic_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/siginfo_t.h \ + /usr/include/x86_64-linux-gnu/bits/siginfo-arch.h \ + /usr/include/x86_64-linux-gnu/bits/siginfo-consts.h \ + /usr/include/x86_64-linux-gnu/bits/siginfo-consts-arch.h \ + /usr/include/x86_64-linux-gnu/bits/types/sigval_t.h \ + /usr/include/x86_64-linux-gnu/bits/sigevent-consts.h \ + /usr/include/x86_64-linux-gnu/bits/sigaction.h \ + /usr/include/x86_64-linux-gnu/bits/sigcontext.h \ + /usr/include/x86_64-linux-gnu/bits/types/stack_t.h \ + /usr/include/x86_64-linux-gnu/sys/ucontext.h \ + /usr/include/x86_64-linux-gnu/bits/sigstack.h \ + /usr/include/x86_64-linux-gnu/bits/ss_flags.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_sigstack.h \ + /usr/include/x86_64-linux-gnu/bits/sigthread.h \ + /usr/include/x86_64-linux-gnu/bits/signal_ext.h \ + /usr/include/x86_64-linux-gnu/bits/param.h /usr/include/linux/param.h \ + /usr/include/x86_64-linux-gnu/asm/param.h \ + /usr/include/asm-generic/param.h /usr/include/string.h \ + /usr/include/strings.h /usr/include/sysexits.h \ + /usr/include/x86_64-linux-gnu/sys/time.h /usr/include/stdio.h \ + /usr/lib/gcc/x86_64-linux-gnu/10/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__FILE.h \ + /usr/include/x86_64-linux-gnu/bits/types/FILE.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h \ + /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h /usr/include/ctype.h \ + /usr/include/errno.h /usr/include/x86_64-linux-gnu/bits/errno.h \ + /usr/include/linux/errno.h /usr/include/x86_64-linux-gnu/asm/errno.h \ + /usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \ + /usr/include/x86_64-linux-gnu/bits/types/error_t.h /usr/include/unistd.h \ + /usr/include/x86_64-linux-gnu/bits/posix_opt.h \ + /usr/include/x86_64-linux-gnu/bits/environments.h \ + /usr/include/x86_64-linux-gnu/bits/confname.h \ + /usr/include/x86_64-linux-gnu/bits/getopt_posix.h \ + /usr/include/x86_64-linux-gnu/bits/getopt_core.h \ + /usr/include/x86_64-linux-gnu/bits/unistd_ext.h /usr/include/arpa/inet.h \ + ../include/sasl.h ../include/prop.h common.h +/usr/include/stdc-predef.h: +../config.h: +/usr/include/x86_64-linux-gnu/sys/types.h: +/usr/include/features.h: +/usr/include/x86_64-linux-gnu/sys/cdefs.h: +/usr/include/x86_64-linux-gnu/bits/wordsize.h: +/usr/include/x86_64-linux-gnu/bits/long-double.h: +/usr/include/x86_64-linux-gnu/gnu/stubs.h: +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: +/usr/include/x86_64-linux-gnu/bits/types.h: +/usr/include/x86_64-linux-gnu/bits/timesize.h: +/usr/include/x86_64-linux-gnu/bits/typesizes.h: +/usr/include/x86_64-linux-gnu/bits/time64.h: +/usr/include/x86_64-linux-gnu/bits/types/clock_t.h: +/usr/include/x86_64-linux-gnu/bits/types/clockid_t.h: +/usr/include/x86_64-linux-gnu/bits/types/time_t.h: +/usr/include/x86_64-linux-gnu/bits/types/timer_t.h: +/usr/lib/gcc/x86_64-linux-gnu/10/include/stddef.h: +/usr/include/x86_64-linux-gnu/bits/stdint-intn.h: +/usr/include/endian.h: +/usr/include/x86_64-linux-gnu/bits/endian.h: +/usr/include/x86_64-linux-gnu/bits/endianness.h: +/usr/include/x86_64-linux-gnu/bits/byteswap.h: +/usr/include/x86_64-linux-gnu/bits/uintn-identity.h: +/usr/include/x86_64-linux-gnu/sys/select.h: +/usr/include/x86_64-linux-gnu/bits/select.h: +/usr/include/x86_64-linux-gnu/bits/types/sigset_t.h: +/usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h: +/usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h: +/usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h: +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: +/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h: +/usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h: +/usr/include/x86_64-linux-gnu/bits/struct_mutex.h: +/usr/include/x86_64-linux-gnu/bits/struct_rwlock.h: +/usr/include/x86_64-linux-gnu/sys/uio.h: +/usr/include/x86_64-linux-gnu/bits/types/struct_iovec.h: +/usr/include/x86_64-linux-gnu/bits/uio_lim.h: +/usr/include/x86_64-linux-gnu/bits/uio-ext.h: +/usr/include/stdlib.h: +/usr/include/x86_64-linux-gnu/bits/libc-header-start.h: +/usr/include/x86_64-linux-gnu/bits/waitflags.h: +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: +/usr/include/x86_64-linux-gnu/bits/floatn.h: +/usr/include/x86_64-linux-gnu/bits/floatn-common.h: +/usr/include/x86_64-linux-gnu/bits/types/locale_t.h: +/usr/include/x86_64-linux-gnu/bits/types/__locale_t.h: +/usr/include/alloca.h: +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: +/usr/include/x86_64-linux-gnu/sys/socket.h: +/usr/include/x86_64-linux-gnu/bits/socket.h: +/usr/include/x86_64-linux-gnu/bits/socket_type.h: +/usr/include/x86_64-linux-gnu/bits/sockaddr.h: +/usr/include/x86_64-linux-gnu/asm/socket.h: +/usr/include/asm-generic/socket.h: +/usr/include/linux/posix_types.h: +/usr/include/linux/stddef.h: +/usr/include/x86_64-linux-gnu/asm/posix_types.h: +/usr/include/x86_64-linux-gnu/asm/posix_types_64.h: +/usr/include/asm-generic/posix_types.h: +/usr/include/x86_64-linux-gnu/asm/bitsperlong.h: +/usr/include/asm-generic/bitsperlong.h: +/usr/include/x86_64-linux-gnu/asm/sockios.h: +/usr/include/asm-generic/sockios.h: +/usr/include/x86_64-linux-gnu/bits/types/struct_osockaddr.h: +/usr/include/netdb.h: +/usr/include/netinet/in.h: +/usr/include/x86_64-linux-gnu/bits/stdint-uintn.h: +/usr/include/x86_64-linux-gnu/bits/in.h: +/usr/include/rpc/netdb.h: +/usr/include/x86_64-linux-gnu/bits/types/sigevent_t.h: +/usr/include/x86_64-linux-gnu/bits/types/__sigval_t.h: +/usr/include/x86_64-linux-gnu/bits/netdb.h: +/usr/include/x86_64-linux-gnu/sys/param.h: +/usr/lib/gcc/x86_64-linux-gnu/10/include/limits.h: +/usr/lib/gcc/x86_64-linux-gnu/10/include/syslimits.h: +/usr/include/limits.h: +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: +/usr/include/x86_64-linux-gnu/bits/local_lim.h: +/usr/include/linux/limits.h: +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: +/usr/include/x86_64-linux-gnu/bits/xopen_lim.h: +/usr/include/signal.h: +/usr/include/x86_64-linux-gnu/bits/signum.h: +/usr/include/x86_64-linux-gnu/bits/signum-generic.h: +/usr/include/x86_64-linux-gnu/bits/types/sig_atomic_t.h: +/usr/include/x86_64-linux-gnu/bits/types/siginfo_t.h: +/usr/include/x86_64-linux-gnu/bits/siginfo-arch.h: +/usr/include/x86_64-linux-gnu/bits/siginfo-consts.h: +/usr/include/x86_64-linux-gnu/bits/siginfo-consts-arch.h: +/usr/include/x86_64-linux-gnu/bits/types/sigval_t.h: +/usr/include/x86_64-linux-gnu/bits/sigevent-consts.h: +/usr/include/x86_64-linux-gnu/bits/sigaction.h: +/usr/include/x86_64-linux-gnu/bits/sigcontext.h: +/usr/include/x86_64-linux-gnu/bits/types/stack_t.h: +/usr/include/x86_64-linux-gnu/sys/ucontext.h: +/usr/include/x86_64-linux-gnu/bits/sigstack.h: +/usr/include/x86_64-linux-gnu/bits/ss_flags.h: +/usr/include/x86_64-linux-gnu/bits/types/struct_sigstack.h: +/usr/include/x86_64-linux-gnu/bits/sigthread.h: +/usr/include/x86_64-linux-gnu/bits/signal_ext.h: +/usr/include/x86_64-linux-gnu/bits/param.h: +/usr/include/linux/param.h: +/usr/include/x86_64-linux-gnu/asm/param.h: +/usr/include/asm-generic/param.h: +/usr/include/string.h: +/usr/include/strings.h: +/usr/include/sysexits.h: +/usr/include/x86_64-linux-gnu/sys/time.h: +/usr/include/stdio.h: +/usr/lib/gcc/x86_64-linux-gnu/10/include/stdarg.h: +/usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h: +/usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h: +/usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h: +/usr/include/x86_64-linux-gnu/bits/types/__FILE.h: +/usr/include/x86_64-linux-gnu/bits/types/FILE.h: +/usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h: +/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h: +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: +/usr/include/x86_64-linux-gnu/bits/stdio.h: +/usr/include/ctype.h: +/usr/include/errno.h: +/usr/include/x86_64-linux-gnu/bits/errno.h: +/usr/include/linux/errno.h: +/usr/include/x86_64-linux-gnu/asm/errno.h: +/usr/include/asm-generic/errno.h: +/usr/include/asm-generic/errno-base.h: +/usr/include/x86_64-linux-gnu/bits/types/error_t.h: +/usr/include/unistd.h: +/usr/include/x86_64-linux-gnu/bits/posix_opt.h: +/usr/include/x86_64-linux-gnu/bits/environments.h: +/usr/include/x86_64-linux-gnu/bits/confname.h: +/usr/include/x86_64-linux-gnu/bits/getopt_posix.h: +/usr/include/x86_64-linux-gnu/bits/getopt_core.h: +/usr/include/x86_64-linux-gnu/bits/unistd_ext.h: +/usr/include/arpa/inet.h: +../include/sasl.h: +../include/prop.h: +common.h: diff --git a/sample/Makefile b/sample/Makefile new file mode 100644 index 0000000..99b5eaf --- /dev/null +++ b/sample/Makefile @@ -0,0 +1,28 @@ + +CC=gcc + +PROGRAM=client server + +LIBSSL_LIBS=-lsasl2 + +FINAL_LIBS+=$(LIBSSL_LIBS) + +FINAL_FLAG+=-Wimplicit-function-declaration $(FINAL_LIBS) + +all: $(PROGRAM) + @echo "" + @echo "build seccess!" + @echo "" + +client:sample-client.c + $(CC) -c sample-client.c $(FINAL_FLAG) + $(CC) -o client sample-client.o $(FINAL_FLAG) + +server:sample-server.c + $(CC) -c sample-server.c $(FINAL_FLAG) + $(CC) -o server sample-server.o $(FINAL_FLAG) + +clean: + rm *.o server client + + diff --git a/sample/sample-client.c b/sample/sample-client.c new file mode 100644 index 0000000..cf374a7 --- /dev/null +++ b/sample/sample-client.c @@ -0,0 +1,106 @@ +#include +#include +#include +#include +#include +#include +#include +#include + +#define SAMPLE_SEC_BUF_SIZE (2048) + +char buf[SAMPLE_SEC_BUF_SIZE]; + +static sasl_conn_t *conn = NULL; +char *realm = "DOMAIN.COM"; +char *mech = "gssapi"; +char *iplocal = "127.0.0.1"; +char *ipremote = "127.0.0.1"; +char *searchpath = NULL; +char *service = "zeekling"; +int cfd; + +int init_sasl() { + int result = sasl_client_init(NULL); + if (result != SASL_OK) { + printf("Initializing libsasl"); + return -1; + } + return 0; +} + +int connect_server() { + struct sockaddr_in s_add,c_add; + unsigned short portnum=2345; + printf("Hello,welcome to client !\r\n"); + cfd = socket(AF_INET, SOCK_STREAM, 0); + if(-1 == cfd) { + printf("socket fail ! \r\n"); + return 1; + } + printf("socket ok !\r\n"); + bzero(&s_add,sizeof(struct sockaddr_in)); + s_add.sin_family=AF_INET; + s_add.sin_addr.s_addr= inet_addr("127.0.0.1"); + s_add.sin_port=htons(portnum); + + if(-1 == connect(cfd,(struct sockaddr *)(&s_add), sizeof(struct sockaddr))) { + printf("connect fail !\r\n"); + return 1; + } + printf("connect ok !\r\n"); + return 0; +} + +int auth_sever() { + + return 0; +} + +int main() { + int result; + const char *data; + const char *chosenmech; + int serverlast = 0; + unsigned len; + char *fqdn = ""; + char *userid = NULL; + char *authid = NULL; + + int recbytes; + int sin_size; + char buffer[1024]={0}; + + if (connect_server() != 0) + { + return 1; + } + + if (init_sasl() != 0) { + return 1; + } + + if(-1 == (recbytes = read(cfd, buffer, 1024))) { + printf("read data fail !\r\n"); + return -1; + } + + if (strcmp(buffer, "need_auth") == 0 && auth_sever() != 0) { + printf("auth failed"); + return -1; + } + printf("auth ok\r\nREC:\r\n"); + + buffer[recbytes]='\0'; + printf("%s\r\n",buffer); + + getchar(); + close(cfd); + + if (init_sasl() != 0) { + return 1; + } + return 0; +} + + diff --git a/sample/sample-server.c b/sample/sample-server.c new file mode 100644 index 0000000..626d242 --- /dev/null +++ b/sample/sample-server.c @@ -0,0 +1,124 @@ +#include +#include +#include +#include +#include +#include +#include + +int sfp; /* 定义两个描述符 */ +struct sockaddr_in s_add,c_add; +int sin_size; + +typedef struct kClient { + int fp; + int auth_complete; + int begin_auth; +} kClient; + +int listen_port() { + unsigned short portnum=2345; /* 服务端使用端口 */ + + sfp = socket(AF_INET, SOCK_STREAM, 0); + if(-1 == sfp) { + printf("socket fail ! \n"); + return -1; + } + + /* 填充服务器端口地址信息,以便下面使用此地址和端口监听 */ + bzero(&s_add,sizeof(struct sockaddr_in)); + s_add.sin_family=AF_INET; + s_add.sin_addr.s_addr=htonl(INADDR_ANY); /* 这里地址使用全0,即所有 */ + s_add.sin_port=htons(portnum); + /* 使用bind进行绑定端口 */ + if(-1 == bind(sfp,(struct sockaddr *)(&s_add), sizeof(struct sockaddr))) + { + printf("bind fail !\n"); + return -1; + } + /* 开始监听相应的端口 */ + if(-1 == listen(sfp,5)) + { + printf("listen fail !\n"); + return -1; + } + printf("Hello,welcome to my server !\n"); + return 0; +} + +kClient *createClient(int fp) { + kClient *c = malloc(sizeof(kClient)); + c->fp = fp; + c->auth_complete = -1; + c->begin_auth = -1; + return c; +} + +int auth_client(kClient *c) { + + return 0; +} + +void readQuery(kClient *c) { + char buffer[1024]={0}; + int recbytes; + /* 这里使用write向客户端发送信息,也可以尝试使用其他函数实现 */ + if(-1 == write(c->fp,"need_auth",9)) + { + printf("write fail!\n"); + close(c->fp); + return; + } + printf("write ok!\n"); + while (1) { + if(-1 == (recbytes = read(c->fp,buffer,1024))) { + printf("read data fail !\n"); + close(c->fp); + } + if (c->auth_complete != 1 && auth_client(c) != 0) { + printf("auth failed!\n"); + break; + } + if(-1 == write(c->fp,"need_auth",9)) { + printf("write fail!\n"); + break; + } + } + close(c->fp); +} + + +int init_sasl() { + int result = sasl_server_init(NULL, "sample"); + if (result != SASL_OK) { + printf("Initializing libsasl"); + return 1; + } + return 0; +} + +int main() +{ + if (listen_port() != 0 && init_sasl() != 0) + { + return 1; + } + while(1) + { + sin_size = sizeof(struct sockaddr_in); + int nfp = accept(sfp, (struct sockaddr *)(&c_add), &sin_size); + if(-1 == nfp) + { + printf("accept fail !\r\n"); + return -1; + } + + printf("accept ok!\r\nServer start get connect from %#x : %#x\r\n",ntohl(c_add.sin_addr.s_addr),ntohs(c_add.sin_port)); + kClient *c = createClient(nfp); + readQuery(c); + } + close(sfp); + return 0; +} + +