HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NET_Utils.h File Reference
#include "NET_API.h"
#include <UT/UT_JSONWriter.h>
#include <UT/UT_StringHolder.h>
#include <UT/UT_UniquePtr.h>
+ Include dependency graph for NET_Utils.h:

Go to the source code of this file.

Functions

NET_API UT_StringHolder NETdetermineCAPath ()
 Determine the default CA Path used by Houdini. More...
 
NET_API UT_StringHolder NETdetermineCAInfo ()
 Determine the default CA Info path used by Houdini. More...
 
NET_API void NETgetLocalAndRemoteIPs (UT_NetSocket *sock, UT_IpAddressV4 &local_ip, UT_IpAddressV4 &remote_ip)
 
NET_API bool NETmatchIPMask (const UT_IpAddressV4 &server_ip, const UT_IpAddressV4 &client_ip, const char *ipmask)
 
NET_API UT_UniquePtr
< UT_JSONWriter
NETcreateJSONWriter (UT_WorkBuffer &content)
 
NET_API UT_StringHolder NEThttpDate ()
 
NET_API UT_StringHolder NETgenerateRandomString (int length)
 
NET_API UT_StringHolder NETremoveDotSegmentsInUrlPath (const UT_StringRef &p)
 Remove any dot segments present in the provided url path. More...
 
NET_API UT_StringHolder NEThtmlEscape (const UT_StringHolder &name)
 HTML escape text to ensure security saftey. More...
 
NET_API bool NETsplitPassword (const UT_StringHolder &password, UT_StringHolder &alg_string, int &iterations, UT_StringHolder &salt, UT_StringHolder &hashed_password)
 
NET_API void NETparseUserAgent (const UT_StringView &user_agent, UT_StringHolder *version=nullptr, UT_StringHolder *platform=nullptr)
 

Function Documentation

NET_API UT_UniquePtr<UT_JSONWriter> NETcreateJSONWriter ( UT_WorkBuffer content)
NET_API UT_StringHolder NETdetermineCAInfo ( )

Determine the default CA Info path used by Houdini.

NET_API UT_StringHolder NETdetermineCAPath ( )

Determine the default CA Path used by Houdini.

NET_API UT_StringHolder NETgenerateRandomString ( int  length)
NET_API void NETgetLocalAndRemoteIPs ( UT_NetSocket sock,
UT_IpAddressV4 local_ip,
UT_IpAddressV4 remote_ip 
)
NET_API UT_StringHolder NEThtmlEscape ( const UT_StringHolder name)

HTML escape text to ensure security saftey.

NET_API UT_StringHolder NEThttpDate ( )
NET_API bool NETmatchIPMask ( const UT_IpAddressV4 server_ip,
const UT_IpAddressV4 client_ip,
const char *  ipmask 
)
NET_API void NETparseUserAgent ( const UT_StringView user_agent,
UT_StringHolder version = nullptr,
UT_StringHolder platform = nullptr 
)
NET_API UT_StringHolder NETremoveDotSegmentsInUrlPath ( const UT_StringRef p)

Remove any dot segments present in the provided url path.

NET_API bool NETsplitPassword ( const UT_StringHolder password,
UT_StringHolder alg_string,
int iterations,
UT_StringHolder salt,
UT_StringHolder hashed_password 
)

Split a stored password into its components so that it can be checked against with raw passwords.