11using  System ; 
22using  System . IO ; 
3+ #if NET 
34using  System . Reflection ; 
5+ #endif
46using  System . Runtime . CompilerServices ; 
57using  System . Runtime . ConstrainedExecution ; 
68using  System . Runtime . InteropServices ; 
@@ -743,6 +745,7 @@ internal static extern int git_libgit2_opts(int option, uint level,
743745            [ MarshalAs ( UnmanagedType . CustomMarshaler ,  MarshalCookie  =  UniqueId . UniqueIdentifier ,  MarshalTypeRef  =  typeof ( StrictUtf8Marshaler ) ) ]  string  path ) ; 
744746
745747        // git_libgit2_opts(GIT_OPT_ENABLE_*, int enabled) 
748+         // git_libgit2_opts(GIT_OPT_SET_OWNER_VALIDATION, int enabled) 
746749        [ DllImport ( libgit2 ,  CallingConvention  =  CallingConvention . Cdecl ) ] 
747750        internal  static extern int  git_libgit2_opts ( int  option ,  int  enabled ) ; 
748751
@@ -762,6 +765,10 @@ internal static extern int git_libgit2_opts(int option,
762765        // git_libgit2_opts(GIT_OPT_GET_EXTENSIONS, git_strarray *out) 
763766        [ DllImport ( libgit2 ,  CallingConvention  =  CallingConvention . Cdecl ) ] 
764767        internal  static extern int  git_libgit2_opts ( int  option ,  out  GitStrArray  extensions ) ; 
768+ 
769+         // git_libgit2_opts(GIT_OPT_GET_OWNER_VALIDATION, int *enabled) 
770+         [ DllImport ( libgit2 ,  CallingConvention  =  CallingConvention . Cdecl ) ] 
771+         internal  static extern unsafe  int  git_libgit2_opts ( int  option ,  int *  enabled ) ; 
765772        #endregion
766773
767774        #region git_libgit2_opts_osxarm64
@@ -779,6 +786,7 @@ internal static extern int git_libgit2_opts_osxarm64(int option, IntPtr nop2, In
779786            [ MarshalAs ( UnmanagedType . CustomMarshaler ,  MarshalCookie  =  UniqueId . UniqueIdentifier ,  MarshalTypeRef  =  typeof ( StrictUtf8Marshaler ) ) ]  string  path ) ; 
780787
781788        // git_libgit2_opts(GIT_OPT_ENABLE_*, int enabled) 
789+         // git_libgit2_opts(GIT_OPT_SET_OWNER_VALIDATION, int enabled) 
782790        [ DllImport ( libgit2 ,  CallingConvention  =  CallingConvention . Cdecl ,  EntryPoint  =  "git_libgit2_opts" ) ] 
783791        internal  static extern int  git_libgit2_opts_osxarm64 ( int  option ,  IntPtr  nop2 ,  IntPtr  nop3 ,  IntPtr  nop4 ,  IntPtr  nop5 ,  IntPtr  nop6 ,  IntPtr  nop7 ,  IntPtr  nop8 ,  int  enabled ) ; 
784792
@@ -798,6 +806,10 @@ internal static extern int git_libgit2_opts_osxarm64(int option, IntPtr nop2, In
798806        // git_libgit2_opts(GIT_OPT_GET_EXTENSIONS, git_strarray *out) 
799807        [ DllImport ( libgit2 ,  CallingConvention  =  CallingConvention . Cdecl ,  EntryPoint  =  "git_libgit2_opts" ) ] 
800808        internal  static extern int  git_libgit2_opts_osxarm64 ( int  option ,  IntPtr  nop2 ,  IntPtr  nop3 ,  IntPtr  nop4 ,  IntPtr  nop5 ,  IntPtr  nop6 ,  IntPtr  nop7 ,  IntPtr  nop8 ,  out  GitStrArray  extensions ) ; 
809+ 
810+         // git_libgit2_opts(GIT_OPT_GET_OWNER_VALIDATION, int *enabled) 
811+         [ DllImport ( libgit2 ,  CallingConvention  =  CallingConvention . Cdecl ,  EntryPoint  =  "git_libgit2_opts" ) ] 
812+         internal  static extern unsafe  int  git_libgit2_opts_osxarm64 ( int  option ,  IntPtr  nop2 ,  IntPtr  nop3 ,  IntPtr  nop4 ,  IntPtr  nop5 ,  IntPtr  nop6 ,  IntPtr  nop7 ,  IntPtr  nop8 ,  int *  enabled ) ; 
801813        #endregion
802814
803815        [ DllImport ( libgit2 ,  CallingConvention  =  CallingConvention . Cdecl ) ] 
0 commit comments