Spelling corrections, found using the codespell tool.
This commit is contained in:
@@ -225,7 +225,7 @@ Alexander Kozhevnikov
|
||||
|
||||
Dan Brooks
|
||||
- Contributed a patch for the Android client app to add the definition of
|
||||
custom server udp port. This is similiar to the --server-port argument
|
||||
custom server udp port. This is similar to the --server-port argument
|
||||
offered by the main fwknop client.
|
||||
|
||||
Github user 'sgh7':
|
||||
|
||||
@@ -81,7 +81,7 @@ fwknop-2.6.6 (04/23/2015):
|
||||
default from accessing the broader Internet until a valid SPA packet is
|
||||
sent to the gateway. Two new access.conf variables support this feature:
|
||||
DISABLE_DNAT (do not build any DNAT rules for forwarded connections) and
|
||||
FORWARD_ALL (allow all traffic to be forwarded instead of specfic
|
||||
FORWARD_ALL (allow all traffic to be forwarded instead of specific
|
||||
services requested within an SPA packet). So far, this feature is only
|
||||
supported on systems running iptables or firewalld. The idea was
|
||||
contributed by "spartan1833" to the fwknop mailing list, and this became
|
||||
@@ -90,7 +90,7 @@ fwknop-2.6.6 (04/23/2015):
|
||||
pcap.h, which is likely not installed whenever libpcap is also not
|
||||
installed. This bug was reported by Alexander Kozhevnikov.
|
||||
- [android] (Dan Brooks) Contributed a patch for the Android client app to
|
||||
add the definition of custom server udp port. This is similiar to the
|
||||
add the definition of custom server udp port. This is similar to the
|
||||
--server-port argument offered by the main fwknop client.
|
||||
- [test suite] Handle versions of lcov that don't have the --rc argument
|
||||
which is normally used to force the creation of branch coverage stats
|
||||
|
||||
@@ -238,7 +238,7 @@ public class Fwknop extends Activity {
|
||||
}
|
||||
}
|
||||
|
||||
// Another Generic Messanger
|
||||
// Another Generic Messenger
|
||||
public static void sendHandlerMessage(Handler handler, int message_type) {
|
||||
Message msg1 = handler.obtainMessage();
|
||||
Bundle b = new Bundle();
|
||||
|
||||
@@ -667,7 +667,7 @@ set_rc_file(char *rcfile, fko_cli_options_t *options)
|
||||
rcf_offset = strlen(rcfile);
|
||||
|
||||
/* Sanity check the path to .fwknoprc.
|
||||
* The preceeding path plus the path separator and '.fwknoprc' = 11
|
||||
* The preceding path plus the path separator and '.fwknoprc' = 11
|
||||
* cannot exceed MAX_PATH_LEN.
|
||||
*/
|
||||
if(rcf_offset > (MAX_PATH_LEN - 11))
|
||||
@@ -801,7 +801,7 @@ create_fwknoprc(const char *rcfile)
|
||||
* If the rcfile already exists, an error is returned */
|
||||
rcfile_fd = open(rcfile, FWKNOPRC_OFLAGS ,FWKNOPRC_MODE);
|
||||
|
||||
// If an error occured ...
|
||||
// If an error occurred ...
|
||||
if (rcfile_fd == -1) {
|
||||
log_msg(LOG_VERBOSITY_WARNING, "Unable to create initial rc file: %s: %s",
|
||||
rcfile, strerror(errno));
|
||||
@@ -1511,7 +1511,7 @@ add_multiple_vars_to_rc(FILE* rc, fko_cli_options_t *options, fko_var_bitmask_t
|
||||
* be stored.
|
||||
*
|
||||
* @return 0 if the section has been found and processed successfully
|
||||
* a negative value if one or more errors occured
|
||||
* a negative value if one or more errors occurred
|
||||
*/
|
||||
static int
|
||||
process_rc_section(char *section_name, fko_cli_options_t *options)
|
||||
|
||||
+2
-2
@@ -123,7 +123,7 @@ read_passwd_from_stream(FILE *stream)
|
||||
* @param fd File descriptor to use to read the pasword from. If fd is set
|
||||
* to FD_INVALID, then a new stream is opened.
|
||||
*
|
||||
* @return NULL if a problem occured or the user killed the terminal (Ctrl-C)\n
|
||||
* @return NULL if a problem occurred or the user killed the terminal (Ctrl-C)\n
|
||||
* otherwise the password - empty password is accepted.
|
||||
*/
|
||||
char*
|
||||
@@ -175,7 +175,7 @@ getpasswd(const char *prompt, int fd)
|
||||
* Save current tty state for later restoration after we :
|
||||
* - disable echo of characters to the tty
|
||||
* - disable signal generation
|
||||
* - disable cannonical mode (input read line by line mode)
|
||||
* - disable canonical mode (input read line by line mode)
|
||||
*/
|
||||
tcgetattr(fileno(fp), &ts);
|
||||
old_c_lflag = ts.c_lflag;
|
||||
|
||||
+2
-2
@@ -556,7 +556,7 @@ send_spa_packet_http(const char *spa_data, const int sd_len,
|
||||
else /* we are sending the SPA packet through an HTTP proxy */
|
||||
{
|
||||
/* Extract the hostname if it was specified as a URL. Actually,
|
||||
* we just move the start of the hostname to the begining of the
|
||||
* we just move the start of the hostname to the beginning of the
|
||||
* original string.
|
||||
*/
|
||||
if(strncasecmp(ndx, "http://", 7) == 0)
|
||||
@@ -622,7 +622,7 @@ send_spa_packet(fko_ctx_t ctx, fko_cli_options_t *options)
|
||||
int res, sd_len;
|
||||
char *spa_data;
|
||||
struct sockaddr_in saddr, daddr;
|
||||
char ip_str[INET_ADDRSTRLEN] = {0}; /* String used to contain the ip addres of an hostname */
|
||||
char ip_str[INET_ADDRSTRLEN] = {0}; /* String used to contain the ip address of an hostname */
|
||||
struct addrinfo hints; /* Structure used to set hints to resolve hostname */
|
||||
#ifdef WIN32
|
||||
WSADATA wsa_data;
|
||||
|
||||
+1
-1
@@ -155,7 +155,7 @@ get_in_addr(struct sockaddr *sa)
|
||||
* @param ip_bufsize Number of bytes available in the ip_str buffer
|
||||
* @param opts Client command line options
|
||||
*
|
||||
* @return 0 if successful, 1 if an error occured.
|
||||
* @return 0 if successful, 1 if an error occurred.
|
||||
*/
|
||||
int
|
||||
resolve_dst_addr(const char *dns_str, struct addrinfo *hints,
|
||||
|
||||
+4
-4
@@ -526,7 +526,7 @@ int zero_free(char *buf, int len)
|
||||
}
|
||||
|
||||
/* zero out sensitive information in a way that isn't optimized out by the compiler
|
||||
* since we force a comparision and return an error if there is a problem (though
|
||||
* since we force a comparison and return an error if there is a problem (though
|
||||
* the caller should do something with this information too).
|
||||
*/
|
||||
int
|
||||
@@ -585,7 +585,7 @@ char
|
||||
* written is set to 0. This way the user knows exactly how many bytes
|
||||
* can be appended afterwards.
|
||||
*
|
||||
* @param buf Buffer to write the formated message to
|
||||
* @param buf Buffer to write the formatted message to
|
||||
* @param buf_size Maximum number of bytes to write to the buffer
|
||||
* @param msg Message to format and to append to the buffer
|
||||
*
|
||||
@@ -605,7 +605,7 @@ append_msg_to_buf(char *buf, size_t buf_size, const char* msg, ...)
|
||||
/* Format the message like a printf message */
|
||||
bytes_written = vsnprintf(buf, buf_size, msg, ap);
|
||||
|
||||
/* It looks like the message has been truncated or an error occured*/
|
||||
/* It looks like the message has been truncated or an error occurred*/
|
||||
if (bytes_written < 0)
|
||||
bytes_written = 0;
|
||||
|
||||
@@ -996,7 +996,7 @@ get_in_addr(struct sockaddr *sa)
|
||||
* @param ip_bufsize Number of bytes available in the ip_str buffer
|
||||
* @param opts Client command line options
|
||||
*
|
||||
* @return 0 if successful, 1 if an error occured.
|
||||
* @return 0 if successful, 1 if an error occurred.
|
||||
*/
|
||||
int
|
||||
ipv4_resolve(const char *dns_str, char *ip_str)
|
||||
|
||||
+1
-1
@@ -64,7 +64,7 @@ void chop_spaces(char *str);
|
||||
|
||||
/**
|
||||
*
|
||||
* \brief counts the occurences of a character
|
||||
* \brief counts the occurrences of a character
|
||||
*
|
||||
* \return returns the number of chars found
|
||||
*/
|
||||
|
||||
+2
-2
@@ -4,7 +4,7 @@ Until we decide on a better way, the man pages for 'fwknop' (client) and
|
||||
'fwknopd' (server) are generated from the asciidoc sources in this directory,
|
||||
then copied to their respective directories before check-in.
|
||||
|
||||
We use the "a2x" command to generate the inital nroff-formated version,
|
||||
We use the "a2x" command to generate the initial nroff-formated version,
|
||||
which is then manually edited to clean it up a bit. The "a2x" command is:
|
||||
|
||||
a2x -f manpage fwknopd.man.asciidoc
|
||||
@@ -13,7 +13,7 @@ This creates the "fwknopd.8" man page. However, depending on the a2x and.or
|
||||
asciidoc configuration on your system, you may have to edit the "fwknopd.8"
|
||||
file directly to remove the "[FIXME: source/manual]" string embedded within.
|
||||
At present, we simply remove them. There may also be places where you want
|
||||
items on succesive line without intervening lines (i.e. the AUTHORS section
|
||||
items on successive line without intervening lines (i.e. the AUTHORS section
|
||||
of the generated man page). In those cases, simply change the ".sp"
|
||||
between those lines to ".br".
|
||||
|
||||
|
||||
+4
-4
@@ -449,7 +449,7 @@ server. The timeout value is provided via the @code{client_timeout} data
|
||||
field.
|
||||
|
||||
@item FKO_LOCAL_NAT_ACCESS_MSG
|
||||
This is similar to the FKO_NAT_ACCESS request exept the @acronym{NAT} is
|
||||
This is similar to the FKO_NAT_ACCESS request except the @acronym{NAT} is
|
||||
to the local to the server (i.e. a service listening on 127.0.0.1).
|
||||
|
||||
@item FKO_CLIENT_TIMEOUT_LOCAL_NAT_ACCESS_MSG
|
||||
@@ -1213,7 +1213,7 @@ will be NULL if the context value was not previously set.
|
||||
This section describes the functions not covered elsewhere in this
|
||||
manual. These are utility functions that operate on the data in the fko
|
||||
context. All but @code{fko_spa_data_final} are called by other functions
|
||||
and are not normally explictly called by the user. However, they can
|
||||
and are not normally explicitly called by the user. However, they can
|
||||
be, so they are listed here.
|
||||
|
||||
All of these functions return an integer representing the return status of
|
||||
@@ -1289,7 +1289,7 @@ for the given error code.
|
||||
|
||||
@deftypefun {const char *} fko_errstr (int @var{err_code})
|
||||
The function @code{fko_errstr} returns a pointer to a statically
|
||||
allocated string containing the descripton of the error.
|
||||
allocated string containing the description of the error.
|
||||
@end deftypefun
|
||||
|
||||
@noindent
|
||||
@@ -1599,7 +1599,7 @@ using the following function:
|
||||
|
||||
@deftypefun {const char *} fko_gpg_errstr (int @var{err_code})
|
||||
The function @code{fko_errstr} returns a pointer to a statically
|
||||
allocated string containing the descripton of the @acronym{GPGME} error.
|
||||
allocated string containing the description of the @acronym{GPGME} error.
|
||||
@end deftypefun
|
||||
|
||||
@noindent
|
||||
|
||||
@@ -2,8 +2,8 @@ This directory holds files and subdirectories related to fwknop and the
|
||||
OpenWRT platform.
|
||||
|
||||
The "package" directory contains the individual OpenWRT package directories.
|
||||
Each of these package directories hold the Makefile and addtional patch or
|
||||
file directories used by teh OpenWRT build sytem.
|
||||
Each of these package directories hold the Makefile and additional patch or
|
||||
file directories used by the OpenWRT build system.
|
||||
|
||||
At present, the packages we include are "fwknop" and "gpgpme". The gpgme
|
||||
package is include because it does not appear to be available on any of
|
||||
|
||||
@@ -78,7 +78,7 @@ typedef u_int32_t uint32_t;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* Work out endianess (sp?)
|
||||
/* Work out endianness
|
||||
*/
|
||||
#if HAVE_ENDIAN_H /* Should cover most Linux systems */
|
||||
#include <endian.h>
|
||||
|
||||
@@ -672,7 +672,7 @@ DLL_API int fko_set_spa_hmac_type(fko_ctx_t ctx, const short hmac_type);
|
||||
* \brief Return error in string form
|
||||
*
|
||||
* The function 'fko_errstr' returns a pointer to a statically
|
||||
* allocated string containing the descripton of the error.
|
||||
* allocated string containing the description of the error.
|
||||
*
|
||||
* \param err_code The error code to convert
|
||||
*
|
||||
@@ -1297,7 +1297,7 @@ DLL_API int fko_set_gpg_ignore_verify_error(fko_ctx_t ctx,
|
||||
* ignore_verify_error flag value associated with the current context.
|
||||
*
|
||||
* \param ctx The FKO context to access
|
||||
* \param val Pointer where teh flag value will be set
|
||||
* \param val Pointer where the flag value will be set
|
||||
*
|
||||
* \return FKO_SUCCESS if successful, returns an error code otherwise
|
||||
*/
|
||||
|
||||
+1
-1
@@ -89,7 +89,7 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* Work out endianess (sp?)
|
||||
/* Work out endianness
|
||||
*/
|
||||
#if HAVE_ENDIAN_H /* Should cover most Linux systems */
|
||||
#include <endian.h>
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* \file lib/fko_context.h
|
||||
*
|
||||
* \brief fko context definiton.
|
||||
* \brief fko context definition.
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -43,7 +43,7 @@
|
||||
*
|
||||
* \struct fko_gpg_sig
|
||||
*
|
||||
* \brief Stucture to hold a list of the gpg signature information we are interested in.
|
||||
* \brief Structure to hold a list of the gpg signature information we are interested in.
|
||||
*/
|
||||
struct fko_gpg_sig {
|
||||
struct fko_gpg_sig *next; /**< link to next member */
|
||||
|
||||
+1
-1
@@ -216,7 +216,7 @@ set_digest(char *data, char **digest, short digest_type, int *digest_len)
|
||||
return(FKO_ERROR_INVALID_DIGEST_TYPE);
|
||||
}
|
||||
|
||||
/* Just in case this is a subsquent call to this function. We
|
||||
/* Just in case this is a subsequent call to this function. We
|
||||
* do not want to be leaking memory.
|
||||
*/
|
||||
if(*digest != NULL)
|
||||
|
||||
+1
-1
@@ -193,7 +193,7 @@ fko_set_spa_message(fko_ctx_t ctx, const char * const msg)
|
||||
if(res != FKO_SUCCESS)
|
||||
return(res);
|
||||
|
||||
/* Just in case this is a subsquent call to this function. We
|
||||
/* Just in case this is a subsequent call to this function. We
|
||||
* do not want to be leaking memory.
|
||||
*/
|
||||
if(ctx->message != NULL)
|
||||
|
||||
@@ -68,7 +68,7 @@ fko_set_spa_nat_access(fko_ctx_t ctx, const char * const msg)
|
||||
if((res = validate_nat_access_msg(msg)) != FKO_SUCCESS)
|
||||
return(res);
|
||||
|
||||
/* Just in case this is a subsquent call to this function. We
|
||||
/* Just in case this is a subsequent call to this function. We
|
||||
* do not want to be leaking memory.
|
||||
*/
|
||||
if(ctx->nat_access != NULL)
|
||||
|
||||
@@ -68,7 +68,7 @@ fko_set_spa_server_auth(fko_ctx_t ctx, const char * const msg)
|
||||
|
||||
/**/
|
||||
|
||||
/* Just in case this is a subsquent call to this function. We
|
||||
/* Just in case this is a subsequent call to this function. We
|
||||
* do not want to be leaking memory.
|
||||
*/
|
||||
if(ctx->server_auth != NULL)
|
||||
|
||||
+1
-1
@@ -79,7 +79,7 @@ typedef enum {
|
||||
#define FKO_IS_SPA_DATA_MODIFIED(ctx) (ctx->state & FKO_SPA_DATA_MODIFIED)
|
||||
|
||||
/* Clear all SPA data modified flags. This is normally called after a
|
||||
* succesful encode/digest/encryption cycle.
|
||||
* successful encode/digest/encryption cycle.
|
||||
*/
|
||||
#define FKO_CLEAR_SPA_DATA_MODIFIED(ctx) \
|
||||
(ctx->state &= (0xffff & ~FKO_SPA_DATA_MODIFIED))
|
||||
|
||||
+2
-2
@@ -53,7 +53,7 @@ fko_set_username(fko_ctx_t ctx, const char * const spoof_user)
|
||||
if(!CTX_INITIALIZED(ctx))
|
||||
return FKO_ERROR_CTX_NOT_INITIALIZED;
|
||||
|
||||
/* If spoof_user was not passed in, check for a SPOOF_USER enviroment
|
||||
/* If spoof_user was not passed in, check for a SPOOF_USER environment
|
||||
* variable. If it is set, use its value.
|
||||
*/
|
||||
if(spoof_user != NULL && spoof_user[0] != '\0')
|
||||
@@ -115,7 +115,7 @@ fko_set_username(fko_ctx_t ctx, const char * const spoof_user)
|
||||
return res;
|
||||
}
|
||||
|
||||
/* Just in case this is a subsquent call to this function. We
|
||||
/* Just in case this is a subsequent call to this function. We
|
||||
* do not want to be leaking memory.
|
||||
*/
|
||||
if(ctx->username != NULL)
|
||||
|
||||
+1
-1
@@ -72,7 +72,7 @@
|
||||
* Please make sure that your system defines BYTE_ORDER. If your
|
||||
* architecture is little-endian, make sure it also defines
|
||||
* LITTLE_ENDIAN and that the two (BYTE_ORDER and LITTLE_ENDIAN) are
|
||||
* equivilent.
|
||||
* equivalent.
|
||||
*
|
||||
* If your system does not define the above, then you can do so by
|
||||
* hand like this:
|
||||
|
||||
+1
-1
@@ -869,7 +869,7 @@ server. The timeout value is provided via the C<client_timeout> data field.
|
||||
|
||||
=item * B<FKO_LOCAL_NAT_ACCESS_MSG>
|
||||
|
||||
This is similar to the C<FKO_NAT_ACCESS> request exept the NAT is to the
|
||||
This is similar to the C<FKO_NAT_ACCESS> request except the NAT is to the
|
||||
local to the server (i.e. a service listening on 127.0.0.1).
|
||||
|
||||
=item * B<FKO_CLIENT_TIMEOUT_LOCAL_NAT_ACCES_MSG>
|
||||
|
||||
@@ -1017,7 +1017,7 @@ fwknop-0.9.6 (01/13/2006):
|
||||
adds a "-K <fwknop cmd line>" argument to the SSH client so that
|
||||
fwknop can be executed directly before an SSH connection is made.
|
||||
- Separated server and client portions of fwknop into "fwknopd" and
|
||||
fwknop repectively. This will allow better portability to be
|
||||
fwknop respectively. This will allow better portability to be
|
||||
developed since the client and server pieces can be developed more
|
||||
independently. NOTE: With so many changes, it is probably a good idea
|
||||
to not preserve old fwknop configs via install.pl.
|
||||
@@ -1093,7 +1093,7 @@ fwknop-0.9.1 (07/29/2005):
|
||||
server with the --Access command line option.
|
||||
- Added the ability to spoof SPA packets over icmp and tcp protocols.
|
||||
- Added the ability to restrict access at the server to only those
|
||||
ports defined in the OPEN_PORTS keyword. This option is controled by
|
||||
ports defined in the OPEN_PORTS keyword. This option is controlled by
|
||||
a new keyword "PERMIT_CLIENT_PORTS".
|
||||
- Bugfix for MD5 sum not being properly calculated over decrypted data.
|
||||
This allowed old packets that contained additional garbage data to
|
||||
|
||||
@@ -47,19 +47,19 @@ Revision History for Class::MethodMaker (versions 2)
|
||||
- Flatten list passed to * in v1 list
|
||||
- Fix buglet in object that called default_ctor method even when an
|
||||
explicit value was supplied
|
||||
- Add compatiblity support for boolean
|
||||
- Add compatibility support for boolean
|
||||
- Lots of documentation improvements
|
||||
- Add html target to Makefile.PL
|
||||
- Add implementation of _clear by default
|
||||
- Add *_clear to array
|
||||
- Add support for 5.6.x
|
||||
- Add new -singleton
|
||||
- Add compatiblity support for singleton
|
||||
- Add compatiblity support for get_concat
|
||||
- Add compatibility support for singleton
|
||||
- Add compatibility support for get_concat
|
||||
- Add basic support for INTEGER type
|
||||
- Add compatiblity support for get_counter
|
||||
- Add compatibility support for get_counter
|
||||
- Bug fixes to read callback
|
||||
- Add compatiblity support for key_{attrib,with_create}
|
||||
- Add compatibility support for key_{attrib,with_create}
|
||||
|
||||
2.00a09 Sep 18 11:04 AM GMT 2003
|
||||
- Add tie_scalar, static_hash, tie_hash for V1
|
||||
|
||||
@@ -318,7 +318,7 @@ no argument provided). Returns no value.
|
||||
return;
|
||||
},
|
||||
|
||||
# this is here for V1 compatiblity only
|
||||
# this is here for V1 compatibility only
|
||||
'!*_find' => sub : method {
|
||||
my ($self, @args) = @_;
|
||||
if (scalar @args) {
|
||||
|
||||
@@ -890,7 +890,7 @@ Constructing with new1 involves an implicit call to C<init>, whilst
|
||||
constructing with new2 involves an implicit call to C<bob> (I<instead> of
|
||||
C<init>).
|
||||
|
||||
It is the responsiblity of the user to ensure that an C<init> method (or
|
||||
It is the responsibility of the user to ensure that an C<init> method (or
|
||||
whatever name) is defined.
|
||||
|
||||
=item -singleton
|
||||
@@ -1072,7 +1072,7 @@ sub copy {
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
# This supplied for V1 compatiblity only
|
||||
# This supplied for V1 compatibility only
|
||||
|
||||
my (%BooleanPos, %BooleanFields);
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ possible:
|
||||
|
||||
=item boolean
|
||||
|
||||
Boolean is available as a backwards compatiblity hack, but there is currently
|
||||
Boolean is available as a backwards compatibility hack, but there is currently
|
||||
no V2 equivalent. It is likely that some replacement mechanism will be
|
||||
introduced in the future, but that it will be incompatible with the version 1
|
||||
boolean.
|
||||
|
||||
@@ -596,7 +596,7 @@ ok evcheck(sub { $y = bless {}, 'X'; }, 'bless ( 2)'), 1, 'bless ( 2)';
|
||||
ok(evcheck(sub { $n = $x->df2_index(1)->value; }, 'default_ctor( 4)'), 1,
|
||||
'default_ctor ( 4)');
|
||||
ok $n, 1, 'default_ctor ( 5)';
|
||||
# This actually creates two Y instances; one explictly, and one not implictly
|
||||
# This actually creates two Y instances; one explicitly, and one not implictly
|
||||
# by the _index method defaulting one (since it can't see the incoming)
|
||||
# XXX not anymore XXX
|
||||
# lvalue support has been dropped (I can't find a consistent way to support
|
||||
@@ -977,7 +977,7 @@ Check that calling a(), with no arguments, doesn't instantiate a new instance
|
||||
=head2 Tests 419--425: non-init ctor
|
||||
|
||||
This is to test that the default ctor or default is not assigned if a value is
|
||||
supplied. This would particularly be a problem with v1 compatiblity use where
|
||||
supplied. This would particularly be a problem with v1 compatibility use where
|
||||
a value is explcitly supplied to prevent 'new' being called because there is
|
||||
no 'new' (if the ctor is called anyway, the program barfs).
|
||||
|
||||
@@ -1049,7 +1049,7 @@ no 'new' (if the ctor is called anyway, the program barfs).
|
||||
ok $n, 3, 'default_ctor (arg) ( 5)';
|
||||
print STDERR Data::Dumper->Dump([$x], [qw($x)])
|
||||
if $ENV{TEST_DEBUG};
|
||||
# This actually creates two Y instances; one explictly, and one not implictly
|
||||
# This actually creates two Y instances; one explicitly, and one not implictly
|
||||
# by the _index method defaulting one (since it can't see the incoming)
|
||||
# XXX not anymore XXX
|
||||
# lvalue support has been dropped (I can't find a consistent way to support
|
||||
|
||||
@@ -634,7 +634,7 @@ ok evcheck(sub { $y = bless {}, 'X'; }, 'bless ( 2)'), 1, 'bless ( 2)';
|
||||
ok(evcheck(sub { $n = $x->df2_index(1)->value; }, 'default_ctor( 4)'), 1,
|
||||
'default_ctor ( 4)');
|
||||
ok $n, 1, 'default_ctor ( 5)';
|
||||
# This actually creates two Y instances; one explictly, and one not implictly
|
||||
# This actually creates two Y instances; one explicitly, and one not implictly
|
||||
# by the _index method defaulting one (since it can't see the incoming)
|
||||
# XXX not anymore XXX
|
||||
# lvalue support has been dropped (I can't find a consistent way to support
|
||||
@@ -1009,7 +1009,7 @@ Check that calling a(), with no arguments, doesn't instantiate a new instance
|
||||
ok(evcheck(sub { $n = $x->dfx_index(1)->value; }, 'default_ctor (arg)( 4)'), 1,
|
||||
'default_ctor (arg) ( 4)');
|
||||
ok $n, 3, 'default_ctor (arg) ( 5)';
|
||||
# This actually creates two Y instances; one explictly, and one not implictly
|
||||
# This actually creates two Y instances; one explicitly, and one not implictly
|
||||
# by the _index method defaulting one (since it can't see the incoming)
|
||||
# XXX not anymore XXX
|
||||
# lvalue support has been dropped (I can't find a consistent way to support
|
||||
|
||||
@@ -870,7 +870,7 @@ TEST_275: {
|
||||
=head2 Tests 295--301: non-init ctor
|
||||
|
||||
This is to test that the default ctor or default is not assigned if a value is
|
||||
supplied. This would particularly be a problem with v1 compatiblity use where
|
||||
supplied. This would particularly be a problem with v1 compatibility use where
|
||||
a value is explcitly supplied to prevent 'new' being called because there is
|
||||
no 'new' (if the ctor is called anyway, the program barfs).
|
||||
|
||||
|
||||
@@ -321,7 +321,7 @@
|
||||
2000-07-12 04:10 ftobin
|
||||
|
||||
* lib/GnuPG/Interface.pm, test/trustdb.gpg: whoops, I really do
|
||||
need to explictly dup, as well as compensate when it's an
|
||||
need to explicitly dup, as well as compensate when it's an
|
||||
already-opened filehandle. Maybe I'll change the name to direct
|
||||
instead of dup.
|
||||
|
||||
|
||||
@@ -124,7 +124,7 @@ Noteworthy changes in 0.08
|
||||
|
||||
* Changes so that testing on recent development versions
|
||||
of GnuPG (namely 1.0.1e) works, or notably says
|
||||
that the error is occuring because of GnuPG version
|
||||
that the error is occurring because of GnuPG version
|
||||
differences.
|
||||
|
||||
|
||||
|
||||
@@ -729,7 +729,7 @@ sub test_default_key_passphrase()
|
||||
# restore this setting to its original setting
|
||||
$self->options->meta_interactive( $saved_meta_interactive_option );
|
||||
|
||||
# all we realy want to check is the status fh
|
||||
# all we really want to check is the status fh
|
||||
while ( <$status> )
|
||||
{
|
||||
if ( /^\[GNUPG:\]\s*GOOD_PASSPHRASE/ )
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
# This is the debhelper compatability version to use.
|
||||
# This is the debhelper compatibility version to use.
|
||||
export DH_COMPAT=1
|
||||
|
||||
ifndef PERL
|
||||
|
||||
@@ -216,8 +216,8 @@ B<Net::Pcap::open_live()>.
|
||||
|
||||
=item B<Net::Pcap::is_swapped($pcap_t);>
|
||||
|
||||
This function returns true if the endianess of the currently open
|
||||
savefile is different from the endianess of the machine.
|
||||
This function returns true if the endianness of the currently open
|
||||
savefile is different from the endianness of the machine.
|
||||
|
||||
=item B<Net::Pcap::major_version($pcap_t);>
|
||||
|
||||
|
||||
@@ -146,7 +146,7 @@ Revision history for Perl extension Net::RawIP.
|
||||
- has been added README.DEV - readme for the developers.
|
||||
|
||||
0.04e Tue Feb 2 13:46:37 1999
|
||||
- have been added some defines in the util.c for compability
|
||||
- have been added some defines in the util.c for compatibility
|
||||
with an old libpcap. Thanks to Seth <seth@freebie.dp.ny.frb.org>
|
||||
|
||||
0.04d Tue Feb 2 10:26:54 1999
|
||||
@@ -212,10 +212,10 @@ Revision history for Perl extension Net::RawIP.
|
||||
- insert usleep(20000); for sendto() on FreeBSD
|
||||
|
||||
0.03a Thu Dec 24 10:01:15 1998
|
||||
- minimize files for includes for system compability
|
||||
- minimize files for includes for system compatibility
|
||||
- Set switch $^W to FALSE for suppress warning messages
|
||||
Thu Dec 24 18:59:42 1998
|
||||
- added some compability with other systems
|
||||
- added some compatibility with other systems
|
||||
|
||||
0.02 Wed Dec 23 17:59:30 1998
|
||||
- some man fixes
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
# Warning: This program could cause problems on your network.
|
||||
# This program could hang, crash or reboot network devices.
|
||||
# Switches could start sending packages to all ports making it
|
||||
# possible to intercept network trafic.
|
||||
# possible to intercept network traffic.
|
||||
#
|
||||
#
|
||||
require 'getopts.pl';
|
||||
|
||||
@@ -1021,7 +1021,7 @@ The given parameters must look like a parameters for the B<send>.
|
||||
=item send_eth_frame($frame,$times,$delay)
|
||||
|
||||
is a method for send any ethernet frame which you may construct by
|
||||
hands.B<$frame> is a packed ethernet frame exept destination and
|
||||
hands.B<$frame> is a packed ethernet frame except destination and
|
||||
source fields(these fields can be setting by B<ethset> or B<ethnew>).
|
||||
Another parameters must look like the parameters for the B<send>.
|
||||
|
||||
@@ -1037,7 +1037,7 @@ the B<data> also is an array reference. This array must be filled
|
||||
with strings which must contain all bytes from a option except bytes
|
||||
with type and length of an option.Of course indexes in those arrays must be
|
||||
equal for the one option.If type is equal to 0 or 1 then there is no bytes
|
||||
with a length and a data,but you have to specify zero data for compability.
|
||||
with a length and a data,but you have to specify zero data for compatibility.
|
||||
|
||||
=item B<optget>(OPTPROTO => { type => [...] },...)
|
||||
|
||||
|
||||
@@ -513,7 +513,7 @@ properly will be returned. B<undef> will be returned if nothing succeeds.
|
||||
|
||||
=cut
|
||||
|
||||
sub CheckStructure { # Check existance of a structure.
|
||||
sub CheckStructure { # Check existence of a structure.
|
||||
my($structname,@headers) = @_;
|
||||
ApplyHeaders("main(){ struct $structname s;}",@headers);
|
||||
}
|
||||
@@ -527,7 +527,7 @@ be returned if nothing succeeds.
|
||||
|
||||
=cut
|
||||
|
||||
sub CheckField { # Check for the existance of specified field in structure
|
||||
sub CheckField { # Check for the existence of specified field in structure
|
||||
my($structname,$fieldname,@headers) = @_;
|
||||
ApplyHeaders("main(){ struct $structname s1; struct $structname s2;
|
||||
s1.$fieldname = s2.$fieldname; }",@headers);
|
||||
@@ -578,7 +578,7 @@ sub CheckHSymbol { # Check for header symbol
|
||||
An experimental routine that takes a name of a function, a nested array
|
||||
consisting of the prototype, and then the normal header groups. It attempts
|
||||
to deduce whether the given prototype matches what the header supplies.
|
||||
Basically, it doesn't work. Or maybe it does. I wouldn't reccomend it,
|
||||
Basically, it doesn't work. Or maybe it does. I wouldn't recommend it,
|
||||
though.
|
||||
|
||||
=cut
|
||||
@@ -812,7 +812,7 @@ sub DeducePrototype {
|
||||
my @args = ();
|
||||
my @validcount = ();
|
||||
|
||||
# Can we check the return type without worry about arguements?
|
||||
# Can we check the return type without worry about arguments?
|
||||
if($checkreturn and (!$checknilargs or !$checkniletcargs)) {
|
||||
for (@types) {
|
||||
if(ApplyHeaders("extern $_ $function(". ($checknilargs?"...":"").");main(){}",[@headers])) {
|
||||
|
||||
@@ -51,7 +51,7 @@ character is waiting, please call it with -1, instead of 1. Positive
|
||||
arguments now indicate a timeout, so 1 would wait a second before timing
|
||||
out.
|
||||
|
||||
As older versions will accept -1, it is reccomended to change all code
|
||||
As older versions will accept -1, it is recommended to change all code
|
||||
that uses ReadMode.
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@ actually a good idea.)
|
||||
Non-blocking support is provided via the ReadKey and ReadLine functions. If
|
||||
they are passed no argument, or an argument of zero, they will act like a
|
||||
normal getc(STDIN) or scalar(<STDIN>). If they are passed a negative
|
||||
argument, then they will immediatly return undef if no input is present. If
|
||||
argument, then they will immediately return undef if no input is present. If
|
||||
passed a positive argument, then they will wait until that time in seconds
|
||||
has passed before returning undef. In most situations, you will probably
|
||||
want to use "ReadKey -1".
|
||||
|
||||
@@ -23,7 +23,7 @@ control over terminal driver modes (cbreak, raw, cooked, etc.,) support for
|
||||
non-blocking reads, if the architecture allows, and some generalized handy
|
||||
functions for working with terminals. One of the main goals is to have the
|
||||
functions as portable as possible, so you can just plug in "use
|
||||
Term::ReadKey" on any architecture and have a good likelyhood of it working.
|
||||
Term::ReadKey" on any architecture and have a good likelihood of it working.
|
||||
|
||||
=over 8
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
* 5. Any other information that you think could be relevant.
|
||||
*
|
||||
*
|
||||
* For the latest version of this code, please retreive the Devel::PPPort
|
||||
* For the latest version of this code, please retrieve the Devel::PPPort
|
||||
* module from CPAN.
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -125,7 +125,7 @@ eval {
|
||||
elsif ( &Term::ReadKey::termoptions() == 4 )
|
||||
{
|
||||
$response =
|
||||
"Term::ReadKey is trying to make do with stty; facilites may be limited.\n";
|
||||
"Term::ReadKey is trying to make do with stty; facilities may be limited.\n";
|
||||
}
|
||||
elsif ( &Term::ReadKey::termoptions() == 5 )
|
||||
{
|
||||
|
||||
@@ -190,5 +190,5 @@ closelog;
|
||||
print "Testing pointer handling in closelog().\n";
|
||||
print "Calling closelog() a second time.\n";
|
||||
closelog;
|
||||
print "This message should not be preceeded by an error message\n";
|
||||
print "This message should not be preceded by an error message\n";
|
||||
print " about dereferenced pointers.\n\n";
|
||||
|
||||
@@ -480,7 +480,7 @@ and an optional port number is supported with the
|
||||
format.
|
||||
.TP
|
||||
.BR \-\^\-HTTP-user-agent\ \<agent\ string>
|
||||
Specify the HTTP user-agent whenver the
|
||||
Specify the HTTP user-agent whenever the
|
||||
.B fwknop
|
||||
client is used to send an SPA packet over an HTTP request, or when the
|
||||
.I \-\-Resolve-external-IP
|
||||
|
||||
@@ -320,7 +320,7 @@ IPT_EXEC_SLEEP 0;
|
||||
IPT_EXEC_TRIES 1;
|
||||
|
||||
### The following four variables control whether a global set of "open" and
|
||||
### "close" commands are executed after receving a valid SPA packet. These
|
||||
### "close" commands are executed after receiving a valid SPA packet. These
|
||||
### variables are used only if FIREWALL_TYPE is set to "external_cmd", but
|
||||
### the same variables can also exist within the access.conf file so that
|
||||
### mixed deployments are possible - that is, some SPA packets will operate
|
||||
|
||||
@@ -4210,7 +4210,7 @@ sub parse_tcp_options() {
|
||||
if ($len == 0 or $len == 1) {
|
||||
### this should never happen; it indicates a broken TCP stack
|
||||
### or maliciously constructed options since the len field is
|
||||
### large enough to accomodate the TLV encoding
|
||||
### large enough to accommodate the TLV encoding
|
||||
my $msg = "broken $len-byte len field within TCP options " .
|
||||
"string: $tcp_options from source IP: $src";
|
||||
print STDERR " $msg\n" if $debug;
|
||||
|
||||
@@ -286,7 +286,7 @@ if ($os_type == $OS_LINUX) {
|
||||
$distro = &get_linux_distro();
|
||||
|
||||
if ($distro eq 'redhat' or $distro eq 'fedora') {
|
||||
### add chkconfig only if we are runing on a redhat distro
|
||||
### add chkconfig only if we are running on a redhat distro
|
||||
$cmds{'chkconfig'} = $chkconfigCmd;
|
||||
} elsif ($distro eq 'gentoo') {
|
||||
### add rc-update if we are running on a gentoo distro
|
||||
|
||||
+1
-1
@@ -438,7 +438,7 @@ class Fko:
|
||||
"client_timeout" data field.
|
||||
|
||||
FKO_LOCAL_NAT_ACCESS_MSG
|
||||
This is similar to the "FKO_NAT_ACCESS" request exept the NAT
|
||||
This is similar to the "FKO_NAT_ACCESS" request except the NAT
|
||||
is to the local to the server (i.e. a service listening on
|
||||
127.0.0.1).
|
||||
|
||||
|
||||
@@ -513,7 +513,7 @@ process_spa_request(const fko_srv_options_t * const opts,
|
||||
*/
|
||||
rule_num = get_next_rule_num();
|
||||
|
||||
/* If rule_num comes back as 0, we aready have the maximum number
|
||||
/* If rule_num comes back as 0, we already have the maximum number
|
||||
* of active rules allowed so we reject and bail here.
|
||||
*/
|
||||
if(rule_num == 0)
|
||||
|
||||
@@ -717,7 +717,7 @@ handle_gpg_sigs(acc_stanza_t *acc, spa_data_t *spadat,
|
||||
if(*res != FKO_SUCCESS)
|
||||
{
|
||||
log_msg(LOG_WARNING,
|
||||
"[%s] (stanza #%d) Error in GPG signature comparision: %s",
|
||||
"[%s] (stanza #%d) Error in GPG signature comparison: %s",
|
||||
spadat->pkt_source_ip, stanza_num, fko_gpg_errstr(*ctx));
|
||||
return 0;
|
||||
}
|
||||
@@ -744,7 +744,7 @@ handle_gpg_sigs(acc_stanza_t *acc, spa_data_t *spadat,
|
||||
if(*res != FKO_SUCCESS)
|
||||
{
|
||||
log_msg(LOG_WARNING,
|
||||
"[%s] (stanza #%d) Error in GPG signature comparision: %s",
|
||||
"[%s] (stanza #%d) Error in GPG signature comparison: %s",
|
||||
spadat->pkt_source_ip, stanza_num, fko_gpg_errstr(*ctx));
|
||||
return 0;
|
||||
}
|
||||
|
||||
+2
-2
@@ -150,8 +150,8 @@ init_logging(fko_srv_options_t *opts) {
|
||||
verbosity = LOG_DEFAULT_VERBOSITY + opts->verbose;
|
||||
}
|
||||
|
||||
/* Syslog message function. It uses default set at intialization, and also
|
||||
* takes variable args to accomodate printf-like formatting and expansion.
|
||||
/* Syslog message function. It uses default set at initialization, and also
|
||||
* takes variable args to accommodate printf-like formatting and expansion.
|
||||
*/
|
||||
void
|
||||
log_msg(int level, char* msg, ...)
|
||||
|
||||
@@ -41,7 +41,7 @@ index 7d8237b..e627b0c 100644
|
||||
+// if(res != FKO_SUCCESS)
|
||||
+// return(res);
|
||||
|
||||
/* Just in case this is a subsquent call to this function. We
|
||||
/* Just in case this is a subsequent call to this function. We
|
||||
* do not want to be leaking memory.
|
||||
@@ -278,6 +278,8 @@ validate_nat_access_msg(const char *msg)
|
||||
int res = FKO_SUCCESS;
|
||||
@@ -78,7 +78,7 @@ index 03a7cad..47a0fe4 100644
|
||||
+// if((res = validate_nat_access_msg(msg)) != FKO_SUCCESS)
|
||||
+// return(res);
|
||||
|
||||
/* Just in case this is a subsquent call to this function. We
|
||||
/* Just in case this is a subsequent call to this function. We
|
||||
* do not want to be leaking memory.
|
||||
diff --git a/lib/fko_user.c b/lib/fko_user.c
|
||||
index 0c909dd..7f0f7eb 100644
|
||||
@@ -100,5 +100,5 @@ index 0c909dd..7f0f7eb 100644
|
||||
+// if((isalnum(username[i]) == 0) && username[i] != '-')
|
||||
+// return(FKO_ERROR_INVALID_DATA);
|
||||
|
||||
/* Just in case this is a subsquent call to this function. We
|
||||
/* Just in case this is a subsequent call to this function. We
|
||||
* do not want to be leaking memory.
|
||||
|
||||
+1
-1
@@ -811,7 +811,7 @@ our $default_server_gpg_args_no_pw_hmac = "$lib_view_str " .
|
||||
"-a $cf{'gpg_no_pw_hmac_access'} $intf_str " .
|
||||
"-d $default_digest_file -p $default_pid_file";
|
||||
|
||||
### point the compiled binaries at the local libary path
|
||||
### point the compiled binaries at the local library path
|
||||
### instead of any installed libfko instance
|
||||
$ENV{'LD_LIBRARY_PATH'} = $lib_dir;
|
||||
$ENV{'DYLD_LIBRARY_PATH'} = $lib_dir if $lib_view_cmd =~ /otool/;
|
||||
|
||||
Reference in New Issue
Block a user