xpc: update README with new events, markdown style fixes

This commit is contained in:
Martin Willi
2013-07-18 12:17:55 +02:00
parent 4edcc86149
commit c7ac7f92e9
+18 -8
View File
@@ -24,12 +24,13 @@ a monolithic and static build. This can be achieved on OS X by using:
LDFLAGS="-all_load" \ LDFLAGS="-all_load" \
CFLAGS="-I/usr/include -DOPENSSL_NO_CMS -O2 -Wall -Wno-format -Wno-pointer-sign" \ CFLAGS="-I/usr/include -DOPENSSL_NO_CMS -O2 -Wall -Wno-format -Wno-pointer-sign" \
./configure --prefix=/opt/local --disable-defaults --enable-openssl \ ./configure --prefix=/opt/local --enable-monolithic \
--enable-kernel-pfkey --enable-kernel-pfroute --enable-eap-mschapv2 \ --disable-shared --enable-static --disable-defaults \
--enable-eap-identity --enable-monolithic --enable-nonce --enable-random \ --enable-openssl --enable-kernel-pfkey --enable-kernel-pfroute \
--enable-pkcs1 --enable-pem --enable-socket-default --enable-xauth-generic \ --enable-eap-mschapv2 --enable-eap-identity --enable-nonce \
--enable-keychain --enable-ikev1 --enable-ikev2 --enable-charon \ --enable-random --enable-pkcs1 --enable-pem --enable-socket-default \
--disable-shared --enable-static --enable-xauth-generic --enable-keychain --enable-charon \
--enable-ikev1 --enable-ikev2
followed by calling make (no need to make install). followed by calling make (no need to make install).
@@ -83,6 +84,15 @@ to the App:
* _password_: user password returned * _password_: user password returned
* _username_: username to query a password for * _username_: username to query a password for
And the following from the App to charon-xpc:
* bool success = stop_connection()
* _success_: TRUE if termination of connection initiated
The following events are currently defined from charon-xpc to the App: The following events are currently defined from charon-xpc to the App:
* _up_: connection has been established
* _down_: connection has been closed or failed to establish * up(): IKE_SA has been established
* down(): IKE_SA has been closed or failed to establish
* child_up(string local_ts, string remote_ts): CHILD_SA has been established
* child_down(string local_ts, string remote_ts): CHILD_SA has been closed
* log(string message): debug log message for this connection