Introduced NS_DISABLE_SHA1, guarded MAX_PATH_SIZE