Fix extension

This commit is contained in:
Tobe O 2019-08-16 10:57:43 -04:00
parent 5c339f8b46
commit 4bf473aadb
6 changed files with 23 additions and 19 deletions

View file

@ -15,6 +15,10 @@
<list default="true" id="196df338-9e5c-49f9-ba32-c75ccea34c48" name="Default Changelist" comment=""> <list default="true" id="196df338-9e5c-49f9-ba32-c75ccea34c48" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/cmake_dart_utils" beforeDir="false" afterPath="$PROJECT_DIR$/cmake_dart_utils" afterDir="false" /> <change beforePath="$PROJECT_DIR$/cmake_dart_utils" beforeDir="false" afterPath="$PROJECT_DIR$/cmake_dart_utils" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cmake_dart_utils/example/lib/sample_extension.dart" beforeDir="false" afterPath="$PROJECT_DIR$/cmake_dart_utils/example/lib/sample_extension.dart" afterDir="false" /> <change beforePath="$PROJECT_DIR$/cmake_dart_utils/example/lib/sample_extension.dart" beforeDir="false" afterPath="$PROJECT_DIR$/cmake_dart_utils/example/lib/sample_extension.dart" afterDir="false" />
<change beforePath="$PROJECT_DIR$/lib/src/native/angel_security.c" beforeDir="false" afterPath="$PROJECT_DIR$/lib/src/native/angel_security.c" afterDir="false" />
<change beforePath="$PROJECT_DIR$/lib/src/native/libangel_security_native.dylib" beforeDir="false" afterPath="$PROJECT_DIR$/lib/src/native/libangel_security_native.dylib" afterDir="false" />
<change beforePath="$PROJECT_DIR$/lib/src/native/native.dart" beforeDir="false" afterPath="$PROJECT_DIR$/lib/src/native/native.dart" afterDir="false" />
<change beforePath="$PROJECT_DIR$/libinjection/src/CMakeLists.txt" beforeDir="false" afterPath="$PROJECT_DIR$/libinjection/src/CMakeLists.txt" afterDir="false" />
</list> </list>
<ignored path="$PROJECT_DIR$/cmake-build-debug/" /> <ignored path="$PROJECT_DIR$/cmake-build-debug/" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
@ -26,11 +30,11 @@
<component name="ExecutionTargetManager" SELECTED_TARGET="CMakeBuildProfile:Debug" /> <component name="ExecutionTargetManager" SELECTED_TARGET="CMakeBuildProfile:Debug" />
<component name="FileEditorManager"> <component name="FileEditorManager">
<leaf> <leaf>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/lib/src/native/angel_security.c"> <entry file="file://$PROJECT_DIR$/lib/src/native/angel_security.c">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="207"> <state relative-caret-position="252">
<caret line="44" column="45" selection-start-line="44" selection-start-column="45" selection-end-line="44" selection-end-column="45" /> <caret line="46" column="44" selection-start-line="46" selection-start-column="44" selection-end-line="46" selection-end-column="44" />
<folding> <folding>
<element signature="e#0#21#0" expanded="true" /> <element signature="e#0#21#0" expanded="true" />
</folding> </folding>
@ -56,7 +60,7 @@
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="true"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/CMakeLists.txt"> <entry file="file://$PROJECT_DIR$/CMakeLists.txt">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="170"> <state relative-caret-position="170">
@ -75,8 +79,8 @@
<list> <list>
<option value="$PROJECT_DIR$/lib/src/native/angel_security.cc" /> <option value="$PROJECT_DIR$/lib/src/native/angel_security.cc" />
<option value="$PROJECT_DIR$/libinjection/src/CMakeLists.txt" /> <option value="$PROJECT_DIR$/libinjection/src/CMakeLists.txt" />
<option value="$PROJECT_DIR$/lib/src/native/angel_security.c" />
<option value="$PROJECT_DIR$/CMakeLists.txt" /> <option value="$PROJECT_DIR$/CMakeLists.txt" />
<option value="$PROJECT_DIR$/lib/src/native/angel_security.c" />
</list> </list>
</option> </option>
</component> </component>
@ -168,12 +172,12 @@
<option name="number" value="Default" /> <option name="number" value="Default" />
<option name="presentableId" value="Default" /> <option name="presentableId" value="Default" />
<updated>1565965399486</updated> <updated>1565965399486</updated>
<workItem from="1565965401738" duration="1352000" /> <workItem from="1565965401738" duration="1678000" />
</task> </task>
<servers /> <servers />
</component> </component>
<component name="TimeTrackingManager"> <component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="1352000" /> <option name="totallyTimeSpent" value="1678000" />
</component> </component>
<component name="ToolWindowManager"> <component name="ToolWindowManager">
<frame x="180" y="23" width="1155" height="766" extended-state="0" /> <frame x="180" y="23" width="1155" height="766" extended-state="0" />
@ -287,16 +291,6 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/lib/src/native/angel_security.c">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="207">
<caret line="44" column="45" selection-start-line="44" selection-start-column="45" selection-end-line="44" selection-end-column="45" />
<folding>
<element signature="e#0#21#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/libinjection/src/CMakeLists.txt"> <entry file="file://$PROJECT_DIR$/libinjection/src/CMakeLists.txt">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="17"> <state relative-caret-position="17">
@ -311,5 +305,15 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/lib/src/native/angel_security.c">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="252">
<caret line="46" column="44" selection-start-line="46" selection-start-column="44" selection-end-line="46" selection-end-column="44" />
<folding>
<element signature="e#0#21#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</component> </component>
</project> </project>

View file

@ -3,7 +3,6 @@ import 'dart:math';
import 'package:angel_framework/angel_framework.dart'; import 'package:angel_framework/angel_framework.dart';
import 'package:angel_framework/http.dart'; import 'package:angel_framework/http.dart';
import 'package:angel_security/angel_security.dart'; import 'package:angel_security/angel_security.dart';
import 'package:http_parser/http_parser.dart';
import 'package:logging/logging.dart'; import 'package:logging/logging.dart';
import 'package:pretty_logging/pretty_logging.dart'; import 'package:pretty_logging/pretty_logging.dart';

View file

@ -44,6 +44,7 @@ void Angel_Security_IsSqli(Dart_NativeArguments arguments) {
HandleError(Dart_ListSetAt(outHandle, 0, Dart_NewBoolean(false))); HandleError(Dart_ListSetAt(outHandle, 0, Dart_NewBoolean(false)));
HandleError(Dart_ListSetAt(outHandle, 1, Dart_Null())); HandleError(Dart_ListSetAt(outHandle, 1, Dart_Null()));
} }
Dart_SetReturnValue(arguments, outHandle);
} }
Dart_NativeFunction ResolveName(Dart_Handle name, int argc, Dart_NativeFunction ResolveName(Dart_Handle name, int argc,

Binary file not shown.

View file

@ -1,3 +1,3 @@
add_library(injection SHARED add_library(injection #SHARED
libinjection.h libinjection_sqli.h libinjection_sqli_data.h libinjection.h libinjection_sqli.h libinjection_sqli_data.h
libinjection_sqli.c) libinjection_sqli.c)