Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcllnt/master #5

Open
wants to merge 43 commits into
base: old-portable
Choose a base branch
from
Open

Xcllnt/master #5

wants to merge 43 commits into from

Conversation

wangjuanjuan177
Copy link

No description provided.

reyk and others added 30 commits October 8, 2015 10:44
-portable maintainer.   Sync iked/ikectl code with -current.
This needs build testing and cleanups.
why it causes a build failure (ikectl-log.Po)
If a policy (configuration) does not specify any peers,
then flag the policy as being able to use transport mode
IPSec. Send the USE_TRANSPORT_MODE notification with the
request to signal the peer that we want transport mode.
Enable transport mode if we receive the USE_TRANSPORT_MODE
notification.
OpenIKED-portable and to implement transport mode - thanks a lot!
- Update the autoconf framework to work on OpenBSD (not needed since
OpenBSD has iked in base).
Just fix the spacing for now, but they should probably go away or fit
into iked's style (whithout the custom LOG_SESSION prefix).
reyk and others added 13 commits June 14, 2016 16:37
- Fix unsigned len type in iked/ca.c
- Prevent LibreSSL from redefining __bounded__
that expect a PATH_MAX input buffer (like realpath on Linux).
Despite the comment, there doesn't seem to be an imsg with a path element.
LibreSSL since it implements a proper PRNG.  Unfortunately, Ubuntu
still defaults to OpenSSL.
BSD IP_RECVDSTADDR returns a struct in_addr.
sockaddr and struct sockaddr_storage (resp):

 -  Fix openbsd-compat.h and replace SET_STORAGE_LEN with
    SET_SA_LEN and SET_SS_LEN. Remove the unused STORAGE_LEN
    and now unused STORAGE_FAMILY.
 -  Make the definition of SET_SA_LEN dependent upon
    HAVE_STRUCT_SOCKADDR_SA_LEN. if HAVE_STRUCT_SOCKADDR_SA_LEN
    is not defined, expand SET_SA_LEN to void.
 -  Make the definition of SET_SS_LEN dependent upon
    HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN. If the latter is not
    defined, expand SET_SS_LEN to SET_SA_LEN. This to avoid
    compatibility problems between ss_len and __ss_len.
 -  Avoid excessive back and forth casting and use sockaddr or
    sockaddr_storage as much as possible.

While here, eliminate the af field from struct ipsec_addr_wrap.
This makes sure that the ss_family field in address is always
properly initialized. Redundant variables tend to have that
effect.

This fixes setting up SAs on FreeBSD and presumably any OS that
have sa_len and ss_len.
In configure.ac, if $prefix evaluates to NONE (unspecified),
use $ac_default_prefix instead. Use $_prefix internally so
that we can test whether --prefix was specified or not.
Fix initialization of the sa_len and ss_len fields in struct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants