f90555ba4d
Add github sync for libsam3
Sync Primary Repository to GitHub Mirror / sync (push) Has been cancelled
2025-05-10 18:48:13 -04:00
ea52a3251d
Merge pull request #23 from i2p/macos-build-fixes
...
Macos build fixes
v0.31.2
2024-02-25 15:01:14 -05:00
03954db321
add MSG_NOSIGNAL to libsam3.c
2024-02-18 13:05:52 -05:00
c8185f0ea8
add MSG_NOSIGNAL during mac pp phase
2024-02-17 10:33:42 -05:00
02b3826685
include time header
2024-02-13 12:05:00 -05:00
a71a49800f
fix typo
2024-02-13 10:47:43 -05:00
3166418a2d
define SOCK_NONBLOCK and SOCK_CLOEXEC for OSX"
2024-02-13 10:46:06 -05:00
b5ae6552d0
Include section needs to be true if __APPLE__ is defined
2024-02-13 10:36:37 -05:00
344c62307d
It needs to go in sam3a
2024-02-13 10:31:54 -05:00
7edf37b893
that was a misidentification, use netinet/tcp instead
2024-02-13 10:24:55 -05:00
140adb2141
that was a misidentification, use netinet/tcp instead
2024-02-13 10:24:37 -05:00
b6d51e6284
since SOL_SOCKET doesn't exist on Mac, pass SOL_TCP on that platform
2024-02-13 10:17:17 -05:00
b84a3caddf
Merge branch 'macos-build-fixes' of github.com:i2p/libsam3 into macos-build-fixes
2024-02-09 16:55:06 -05:00
7dbc7c1aae
extern sam3atimeval2ms, sam3ams2timeval
2024-02-09 16:50:51 -05:00
c38987ac1c
Update src/libsam3a/libsam3a.c
...
Co-authored-by: Sergey Fedorov <vital.had@gmail.com >
2024-02-09 17:21:46 +00:00
92b38de9cb
Remove sysinfo.h from the Apple header section
2024-02-09 10:25:48 -05:00
8b554c13b5
Include mach_time on osx platforms
2024-02-08 11:23:59 -05:00
390793bdb8
Use getpid and TickCount when on OSX platforms
2024-02-08 11:21:18 -05:00
e567bb463c
Update src/libsam3a/libsam3a.c
...
Co-authored-by: Sergey Fedorov <vital.had@gmail.com >
2024-02-08 16:21:56 +00:00
883932c073
Update src/libsam3/libsam3.c
...
Co-authored-by: Sergey Fedorov <vital.had@gmail.com >
2024-02-08 16:21:24 +00:00
64d85291fd
Disable use of sysinfo.h on Mac OSX and replace deprecated functions that killed it
2024-02-07 11:44:43 -05:00
6bee253ca6
Use PID/TickCount for random nickname string on __APPLE__ Platforms
2024-02-07 11:34:39 -05:00
94478efec2
Fix some of the headers to make progress on fixing OSX builds
2023-12-22 12:04:24 -05:00
2226ef0a20
Merge branch 'MITLicense' into 'master'
...
Replace License that Prominently Features an Expletive
See merge request i2p-hackers/libsam3!2
2023-07-24 23:03:12 +00:00
cd24279c2a
Replace License that Prominently Features an Expletive
...
The original license prominently features an expletive in the
license name.
Replace this license with a similar permissive license (the MIT
license was choosen in this case).
Signed-off-by: obscuratus <obscuratus@mail.i2p >
2023-07-24 22:45:30 +00:00
35754667d8
Merge branch 'datagram-example' into 'master'
...
Fixes for Datagram Example
See merge request i2p-hackers/libsam3!1
2023-07-18 19:41:23 +00:00
4843b0b624
Fixes for Datagram Example
...
The datagram examples (server and client) had accumulated a few
issues preventing them from running successfully.
The examples had not been updated to handle the longer destination
key sizes utilized by the new signature type.
Also, there was misalignment in parenthesis in the datagram
server example when evaluating the 'quit' message.
Signed-off-by: obscuratus <obscuratus@mail.i2p >
2022-08-16 16:18:23 -05:00
27fabf8a82
fix out-of-bounds sig, closes #2 , thanks @obscuratus
2022-08-07 23:26:15 -04:00
36528099fd
check in fix from @obscuratus, thanks for the MR, closes #1
2022-08-07 23:23:27 -04:00
3b004ee4c7
add note to non-functioning boost example
2022-06-28 15:37:19 -04:00
1920a37572
fix missing signature type in sam3CreateSession DESTINATION GENERATE
2022-06-28 15:36:11 -04:00
ebf7d0b012
Merge pull request #16 from i2p/generateKeys
...
fix public key out put in generateKeys
v0.31.01
2020-12-13 13:51:33 +00:00
b410da5986
add new examples/tests
2020-12-13 01:01:44 -05:00
1b7b8cf8ba
add new examples/tests
2020-12-13 01:00:46 -05:00
9ca783a022
fix public key out put in generateKeys
2020-12-13 00:57:13 -05:00
8623304b62
FORWARD is different from CONNECT and ACCEPT ( #14 )
v0.31.00
2020-11-24 18:12:26 +00:00
3f14a30065
clang-fmt
2020-11-24 13:12:07 -05:00
ce0d1bfdfa
FORWARD is different from CONNECT and ACCEPT
2020-11-24 13:09:52 -05:00
749519ab1f
Merge pull request #13 from i2p/remember-c
...
don't check for a correct reply on silent sessions
2020-11-24 17:43:46 +00:00
a04bb557c7
don't check for a correct reply
2020-11-24 12:38:20 -05:00
4bcaa17adb
Merge pull request #12 from i2p/remember-c
...
do the checkIsSilent better
2020-11-24 17:15:18 +00:00
ca20286c6b
do the checkIsSilent better
2020-11-24 12:01:34 -05:00
0aebf5a20a
Merge pull request #11 from i2p/remember-c
...
Fix initialization of 'silent' *char
2020-11-23 23:28:08 +00:00
baf1b3e580
clang-fmt
2020-11-23 15:01:07 -05:00
e6b8f5e231
No, it needs to me a regular array not a string literal
2020-11-23 15:00:19 -05:00
b324eb1e21
add examples to test silent sessions
2020-11-23 14:53:23 -05:00
610e6c106e
Fix initialization of 'silent' *char
2020-11-23 14:39:00 -05:00
03ccfe263b
Merge pull request #9 from i2p/windows-libsam3
...
Adds support for Windows to both libsam and libsam3a.
2020-11-20 19:42:51 +00:00
20719276ec
One last fix for the ssize_t define on Unixes
2020-11-20 11:58:47 -05:00
f452e2729f
Add some notes about the linker and our library users to the README.md
2020-11-20 11:53:26 -05:00