Skip to content

CURLKHSTAT_FINE_REPLACE - #5685

Closed
mickae1 wants to merge 1 commit into
curl:masterfrom
mickae1:master
Closed

mickae1 wants to merge 1 commit into
curl:masterfrom
mickae1:master

Conversation

@mickae1

@mickae1 mickae1 commented Jul 15, 2020

Copy link
Copy Markdown
Contributor

add the functionality to remove the old host+key that doesn't match anymore. It's usefull to prevent the knownhost file to grow too much.

I've a problem during the compilation:

NMAKE : fatal error U1073: incapable d'obtenir '..\src\tool_hugehelp.c'

@ghost

ghost commented Jul 15, 2020 •

Copy link
Copy Markdown

Congratulations 🎉. DeepCode analyzed your code in 0.222 seconds and we found no issues. Enjoy a moment of no bugs ☀️.

👉 View analysis in DeepCode’s Dashboard | Configure the bot

@bagder bagder left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The libssh backend is also quite popular so I think it would make sense to make sure that is updated accordingly!

Comment thread docs/libcurl/opts/CURLOPT_SSH_KEYFUNCTION.3 Outdated
Comment thread docs/libcurl/opts/CURLOPT_SSH_KEYFUNCTION.3 Outdated
Comment thread include/curl/curl.h Outdated
Comment thread lib/vssh/libssh2.c Outdated
Comment thread lib/vssh/libssh2.c Outdated
Comment thread lib/vssh/libssh2.c Outdated
@bagder

bagder commented Jul 16, 2020

Copy link
Copy Markdown
Member

Don't forget make checksrc:

./vssh/libssh2.c:444:48: warning: Trailing whitespace (TRAILINGSPACE)
     struct ssh_conn *sshc = &conn->proto.sshc;  
                                                ^
./vssh/libssh2.c:590:53: warning: Trailing whitespace (TRAILINGSPACE)
         else if(rc == CURLKHSTAT_FINE_ADD_TO_FILE || 
                                                     ^
checksrc: 0 errors and 2 warnings
checksrc: 0 errors and 6 warnings suppressed

Also, please consider squashing the commits and force-pushing after extensive edits so that we can now do a fresh review on the entire thing a little easier.

@mickae1

mickae1 commented Jul 25, 2020

Copy link
Copy Markdown
Contributor Author

Ok, I will do it... In vacation for the moment

@bagder bagder added the feature-window A merge of this requires an open feature window label Jul 27, 2020
@mickae1

mickae1 commented Aug 3, 2020 •

Copy link
Copy Markdown
Contributor Author

done :) waiting for the review ;)

@mickae1 mickae1 changed the title CURLKHSTAT_FINE_REPLACE_TO_FILE CURLKHSTAT_FINE_REPLACE Aug 3, 2020

@bagder bagder left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 1119 still fails.

The commit message mentions the wrong name and doesn't follow the style guide

Comment thread docs/libcurl/opts/CURLOPT_SSH_KEYFUNCTION.3 Outdated
Comment thread lib/vssh/libssh2.c Outdated
Comment thread lib/vssh/libssh2.c Outdated
@mickae1
mickae1 requested a review from bagder August 3, 2020 14:27
@bagder

bagder commented Aug 3, 2020

Copy link
Copy Markdown
Member

The 1119 test still fails. You need to add CURLKHSTAT_FINE_REPLACE to docs/libcurl/symbols-in-versions

@mickae1

mickae1 commented Aug 3, 2020

Copy link
Copy Markdown
Contributor Author

The 1119 test still fails. You need to add CURLKHSTAT_FINE_REPLACE to docs/libcurl/symbols-in-versions

problem corrected :)

@mickae1

mickae1 commented Aug 6, 2020 •

Copy link
Copy Markdown
Contributor Author

@bagder requested changes

I've done the change, how can I say that it is done ?

@bagder

bagder commented Aug 6, 2020

Copy link
Copy Markdown
Member

You still forget to run make checksrc and several CI jobs pointed out this problem to you:

./vssh/libssh2.c:444:48: warning: Trailing whitespace (TRAILINGSPACE)
     struct ssh_conn *sshc = &conn->proto.sshc;  
                                                ^
./vssh/libssh2.c:590:53: warning: Trailing whitespace (TRAILINGSPACE)
         else if(rc == CURLKHSTAT_FINE_ADD_TO_FILE || 
                                                     ^

@mickae1

mickae1 commented Aug 6, 2020 •

Copy link
Copy Markdown
Contributor Author

You still forget to run make checksrc and several CI jobs pointed out this problem to you:

./vssh/libssh2.c:444:48: warning: Trailing whitespace (TRAILINGSPACE)
     struct ssh_conn *sshc = &conn->proto.sshc;  
                                                ^
./vssh/libssh2.c:590:53: warning: Trailing whitespace (TRAILINGSPACE)
         else if(rc == CURLKHSTAT_FINE_ADD_TO_FILE || 
                                                     ^

@bagder
sorry ... it's because, I'm on windows, and this doesn't work:

curl\winbuild> nmake checksrc ..\lib\vssh\libssh2.c

I've corrected the trailingspace 👍

@bagder

bagder commented Aug 6, 2020

Copy link
Copy Markdown
Member

I believe projects/checksrc.bat should be possible to invoke by windows users.

@mickae1

mickae1 commented Aug 6, 2020

Copy link
Copy Markdown
Contributor Author

projects/checksrc.bat

Thx,
@bagder

curl> projects/checksrc.bat .\lib\vssh\libssh2.c

no result from the command :)

looks like that it's okay 👍

Comment thread lib/vssh/libssh2.c Outdated
this functionality is usefull when you need to update the fingerprint of the host.
The other option : CURLKHSTAT_FINE_ADD_TO_FILE, append the new fingerprint in the file, but the old fingerprint is not deleted.
@bagder bagder closed this in ebc6c54 Aug 24, 2020
@bagder bagder removed the feature-window A merge of this requires an open feature window label Aug 24, 2020
@bagder

bagder commented Aug 24, 2020

Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants