Skip to content

Commit 107ad4f

Browse files
clean up
1 parent cfd1d05 commit 107ad4f

File tree

4 files changed

+0
-117
lines changed

4 files changed

+0
-117
lines changed

ffi/dotnet/Devolutions.IronRdp/Generated/KerberosConfig.cs

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -29,42 +29,6 @@ public unsafe KerberosConfig(Raw.KerberosConfig* handle)
2929
_inner = handle;
3030
}
3131

32-
/// <summary>
33-
/// Creates a new KerberosConfig for KDC proxy support.
34-
/// </summary>
35-
/// <remarks>
36-
/// # Arguments
37-
/// * `kdc_proxy_url` - KDC proxy URL (e.g., "https://gateway.example.com/KdcProxy/{token}"), empty string if not used
38-
/// * `hostname` - Client hostname for Kerberos, empty string if not used
39-
/// </remarks>
40-
/// <exception cref="IronRdpException"></exception>
41-
/// <returns>
42-
/// A <c>KerberosConfig</c> allocated on Rust side.
43-
/// </returns>
44-
public static KerberosConfig New(string kdcProxyUrl, string hostname)
45-
{
46-
unsafe
47-
{
48-
byte[] kdcProxyUrlBuf = DiplomatUtils.StringToUtf8(kdcProxyUrl);
49-
byte[] hostnameBuf = DiplomatUtils.StringToUtf8(hostname);
50-
nuint kdcProxyUrlBufLength = (nuint)kdcProxyUrlBuf.Length;
51-
nuint hostnameBufLength = (nuint)hostnameBuf.Length;
52-
fixed (byte* kdcProxyUrlBufPtr = kdcProxyUrlBuf)
53-
{
54-
fixed (byte* hostnameBufPtr = hostnameBuf)
55-
{
56-
Raw.CredsspFfiResultBoxKerberosConfigBoxIronRdpError result = Raw.KerberosConfig.New(kdcProxyUrlBufPtr, kdcProxyUrlBufLength, hostnameBufPtr, hostnameBufLength);
57-
if (!result.isOk)
58-
{
59-
throw new IronRdpException(new IronRdpError(result.Err));
60-
}
61-
Raw.KerberosConfig* retVal = result.Ok;
62-
return new KerberosConfig(retVal);
63-
}
64-
}
65-
}
66-
}
67-
6832
/// <summary>
6933
/// Returns the underlying raw handle.
7034
/// </summary>

ffi/dotnet/Devolutions.IronRdp/Generated/RawCredsspFfiResultBoxKerberosConfigBoxIronRdpError.cs

Lines changed: 0 additions & 46 deletions
This file was deleted.

ffi/dotnet/Devolutions.IronRdp/Generated/RawKerberosConfig.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,6 @@ public partial struct KerberosConfig
1616
{
1717
private const string NativeLib = "DevolutionsIronRdp";
1818

19-
/// <summary>
20-
/// Creates a new KerberosConfig for KDC proxy support.
21-
/// </summary>
22-
/// <remarks>
23-
/// # Arguments
24-
/// * `kdc_proxy_url` - KDC proxy URL (e.g., "https://gateway.example.com/KdcProxy/{token}"), empty string if not used
25-
/// * `hostname` - Client hostname for Kerberos, empty string if not used
26-
/// </remarks>
27-
[DllImport(NativeLib, CallingConvention = CallingConvention.Cdecl, EntryPoint = "KerberosConfig_new", ExactSpelling = true)]
28-
public static unsafe extern CredsspFfiResultBoxKerberosConfigBoxIronRdpError New(byte* kdcProxyUrl, nuint kdcProxyUrlSz, byte* hostname, nuint hostnameSz);
29-
3019
[DllImport(NativeLib, CallingConvention = CallingConvention.Cdecl, EntryPoint = "KerberosConfig_destroy", ExactSpelling = true)]
3120
public static unsafe extern void Destroy(KerberosConfig* self);
3221
}

ffi/src/credssp/mod.rs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,6 @@ pub mod ffi {
1616
#[diplomat::opaque]
1717
pub struct KerberosConfig(pub ironrdp::connector::credssp::KerberosConfig);
1818

19-
impl KerberosConfig {
20-
/// Creates a new KerberosConfig for KDC proxy support.
21-
///
22-
/// # Arguments
23-
/// * `kdc_proxy_url` - KDC proxy URL (e.g., "https://gateway.example.com/KdcProxy/{token}"), empty string if not used
24-
/// * `hostname` - Client hostname for Kerberos, empty string if not used
25-
pub fn new(kdc_proxy_url: &str, hostname: &str) -> Result<Box<KerberosConfig>, Box<IronRdpError>> {
26-
let kdc_proxy_url_opt = if kdc_proxy_url.is_empty() {
27-
None
28-
} else {
29-
Some(kdc_proxy_url.to_owned())
30-
};
31-
32-
let hostname_opt = if hostname.is_empty() {
33-
None
34-
} else {
35-
Some(hostname.to_owned())
36-
};
37-
38-
let config = ironrdp::connector::credssp::KerberosConfig::new(kdc_proxy_url_opt, hostname_opt)?;
39-
Ok(Box::new(KerberosConfig(config)))
40-
}
41-
}
42-
4319
#[diplomat::opaque]
4420
pub struct CredsspSequence(pub ironrdp::connector::credssp::CredsspSequence);
4521

0 commit comments

Comments
 (0)