moved chunk_increment() function to libstrongswan
This commit is contained in:
@@ -238,6 +238,14 @@ static inline bool chunk_equals(chunk_t a, chunk_t b)
|
||||
a.len == b.len && memeq(a.ptr, b.ptr, a.len);
|
||||
}
|
||||
|
||||
/**
|
||||
* Increment a chunk, as it would reprensent a network order integer.
|
||||
*
|
||||
* @param chunk chunk to increment
|
||||
* @return TRUE if an overflow occured
|
||||
*/
|
||||
bool chunk_increment(chunk_t chunk);
|
||||
|
||||
/**
|
||||
* Check if a chunk has printable characters only.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user